Closed
Description
- Laravel-mongodb Version: 3.6.4
- PHP Version: 7.3.21
- Database Driver & Version: mongodb 1.5.5
Description:
Recently, was merged laravel/framework#33777. Since then, I'm getting an error when I try to use the create method with a model that has $guarded attribute
Steps to reproduce
- Have a Model that has $guarded attribute:
class Tester extends \Moloquent
{
protected $guarded = [
'test',
];
}
- call Tester::create(['foo' => 'bar']);
Expected behaviour
It should create a object with property 'foo' in database
Actual behaviour
PHP Error: Call to a member function compileColumnListing() on null in /home/project/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php on line 136