helpers icon indicating copy to clipboard operation
helpers copied to clipboard

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

Open azaman2204 opened this issue 5 years ago • 3 comments

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

azaman2204 avatar Apr 02 '20 15:04 azaman2204

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

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

in Laravel 7 MigrationCreator have change the __construct function

xavier-chen avatar Apr 03 '20 15:04 xavier-chen

@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

azaman2204 avatar Apr 03 '20 23:04 azaman2204

https://github.com/laravel-admin-extensions/helpers/pull/30 @azaman2204

virutmath avatar May 24 '20 16:05 virutmath