e
Size: a a a
e
e
NY
BB
NE
LogicException with message 'App\User::isPartner must return a relationship instance.'
"public function isPartner(): bool
{
return $this->user_type === self::PARTNER;
}
V
V
V
V
e
В
ИБ
e
composer require laravel/passport
php artisan migrate
php artisan passport:install
use Laravel\Passport\HasApiTokens;
В
ИБ
В
##
$array = [надо сделать так: = $string = ' 1, 2, 3, 4, 5, 6';
0 => [ 'id' => 1, 'old_id' => 4 ],
1 => [ 'id' => 2, 'old_id' => 2 ],
2 => [ 'id' => 3, 'old_id' => 6 ],
3 => [ 'id' => 4, 'old_id' => 5 ],
4 => [ 'id' => 5, 'old_id' => 3 ],
5 => [ 'id' => 6, 'old_id' => 1 ],
];
##
e