Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abu-Salah-Musha-Lemon committed Aug 14, 2024
1 parent 8b06713 commit 5f05048
Show file tree
Hide file tree
Showing 3 changed files with 848 additions and 1 deletion.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,48 @@ If you discover a security vulnerability within Laravel, please send an e-mail t
## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).


## laratrustUser config;
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laratrust\Traits\HasRolesAndPermissions;

use Laratrust\Contracts\LaratrustUser;

class User extends Authenticatable implements LaratrustUser
{
use HasFactory, Notifiable, HasRolesAndPermissions;

protected $fillable = [
'name',
'email',
'password',
];


protected $hidden = [
'password',
'remember_token',
];


protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}


php artisan key:generate
php artisan config:cach
php.ini/extension=zip
npm install
npm run dev

Loading

0 comments on commit 5f05048

Please sign in to comment.