Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentCountError In MigrationCreator.php line 40 : Too few arguments to function Illuminate\Database\Migrations\MigrationCreator::__construct(), 1 passed in /var/www/azmanfarm/vendor/laravel-admin-ext/helpers/src/Controllers/ScaffoldController.php on line 65 and exactly 2 expected #29

Open
azaman2204 opened this issue Apr 2, 2020 · 3 comments

Comments

@azaman2204
Copy link

Laravel Version: 7.4.0
PHP Version: PHP/7.2.24-0ubuntu0.18.04.3
Laravel-admin: 1.7.14

ArgumentCountError In MigrationCreator.php line 40 : Too few arguments to function Illuminate\Database\Migrations\MigrationCreator::__construct(), 1 passed in /var/www/azmanfarm/vendor/laravel-admin-ext/helpers/src/Controllers/ScaffoldController.php on line 65 and exactly 2 expected

Screenshot 2020-04-02 at 11 18 27 PM

@xavier-chen
Copy link

@azaman2204 ScaffoldController.php in the Controller folder, change line 65 ,

new MigrationCreator(app('files'),null)

in Laravel 7 MigrationCreator have change the __construct function

@azaman2204
Copy link
Author

@xavier-chen Thanks so much. I got pass thru scaffold and created as expected.
But now when calling to display, I got the following error;
FatalThrowableError In HasEvents.php line 261 :
Type error: Too few arguments to function Illuminate\Database\Eloquent\Model::created(), 0 passed in /var/www/kfmv2/vendor/encore/laravel-admin/src/Grid.php on line 838 and exactly 1 expected

Much appreciated your insight as I'm not much familiar with the new changes in Laravel 7

@virutmath
Copy link
Contributor

#30
@azaman2204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants