Closed alexszilagyi closed 8 years ago
I've used last stable on https://packagist.org/packages/illuminate/database
Can you write here the error?
@fdisotto : Thanks for that 👍 Do you have any idea what version I should use?
@fdisotto : there's the error that I'm getting:
Slim Application Error
The application could not run because of the following error:
Details
Type: Illuminate\Database\Eloquent\MassAssignmentException
Message: title
File: /Applications/MAMP/htdocs/slimblog/vendor/illuminate/database/Illuminate/Database/Eloquent/Model.php
Line: 333
Trace
#0 /Applications/MAMP/htdocs/slimblog/vendor/illuminate/database/Illuminate/Database/Eloquent/Model.php(1231): Illuminate\Database\Eloquent\Model->fill(Array)
#1 /Applications/MAMP/htdocs/slimblog/src/routes/admin.route.php(112): Illuminate\Database\Eloquent\Model->update(Array)
#2 [internal function]: {closure}('3')
#3 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Route.php(441): call_user_func_array(Object(Closure), Array)
#4 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Slim.php(1314): Slim\Route->dispatch()
#5 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#6 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#7 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Middleware/SessionCookie.php(110): Slim\Middleware\MethodOverride->call()
#8 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\SessionCookie->call()
#9 /Applications/MAMP/htdocs/slimblog/vendor/slim/slim/Slim/Slim.php(1261): Slim\Middleware\PrettyExceptions->call()
#10 /Applications/MAMP/htdocs/slimblog/public/index.php(79): Slim\Slim->run()
#11 {main}
https://gist.github.com/geggleto/36d987bf00a88a4db9c2cbf489d68c64 <-- guarded attributes!
Can you tell me the version of eloquent you've used in your example?
Running 5.2 gives me an error on updating the content.