Closed ogacitua closed 10 years ago
Have other details about the error? Have you modified the script? Thanks :)
I write a post without any problem, then try to disable or enable the post throws me an error on the line where it updates the entry in the database.
For example , deactivate function :
$post->update(array('active' => 'false'));
I think the problem is this: http://laravel.com/docs/eloquent#mass-assignment
After work I'll try this and if there are no problem I update the repo
When replacing the line ( 273 and 288 in routes/admin.route.php)
$post = Posts::where('id', '=', $id)->first();
For this,
$post = Posts::where('id', '=', $id);
The error no longer appears, what do you think?
EDIT : It seems everything can be solved by removing the section "->first()"
Good, tonight I try this solution and update repo ;) Thank you :+1:
Pushed :+1: Many thanks bro!
When i try to disable / enable and edit a post, I get this:
Is there any solution? Thanks ! :D :smiley: