api-guard
api-guard copied to clipboard
How to fill apikeyable_id in controller file
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.