Hellow, I used laravel auth command and create users table to register users. now I need update user information in edit.blade.php file. how can I do this new for Laravel. this is My user Model
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'username', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
public function getAvatarUrl()
{
return "http://ift.tt/ww139j" . md5(strtolower(trim($this->email))) . "?d=mm&s=40";
}
}
I need create UserController.php file and edit.blade.php file to update users.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire