saqueib / qtube

Create REST API with authentication using Laravel Passport http://www.qcode.in/create-rest-api-authentication-using-laravel-passport/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InvalidArgumentException

markib opened this issue · comments

InvalidArgumentException]
Unable to locate factory with name [5] [App\Channel].

fixed it, it was due to passed number is coming as string, so 5 was passing as "5".

I have updated the database/seeds/DatabaseSeeder.php

// Line 41
$channels = factory(App\Channel::class, intval($numberOfUser))->create();