change from session to token
This commit is contained in:
@@ -7,16 +7,17 @@ use App\Facades\File\FileFacade;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
use Spatie\Permission\Traits\HasRoles;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use HasFactory, Notifiable, HasRoles;
|
||||
use HasFactory, Notifiable, HasRoles, HasApiTokens;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $hidden = ['password', 'pivot'];
|
||||
public string $guard_name = 'web';
|
||||
public string $guard_name = 'api';
|
||||
|
||||
public function storeFile($file, $name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user