8000 How to fill apikeyable_id in controller file · Issue #163 · chrisbjr/api-guard · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to fill apikeyable_id in controller file #163
Open
@khoude24

Description

@khoude24

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0