api-guard icon indicating copy to clipboard operation
api-guard copied to clipboard

How to fill apikeyable_id in controller file

Open khoude24 opened this issue 7 years ago • 0 comments

How to fill apikeyable_id column like this command php artisan api-key:generate --id=1 --type="App\User" in controller file?

I try

     $user = User::find(10);
     $user->createApiKey();

But the apikeyable_id still null. apikeyable_type . have the good value.

khoude24 avatar Jul 17 '18 15:07 khoude24