I have even tried a hack of just setting the delete_ at field with:
date('Y-m-d H:i:s');
But still no luck. The row still appears when I get the data.
Do you have the relationships setup in the Model classes ?
Author hasMany books Book has one Author
http://laravel.com/docs/eloquent#relationships
Yep, the relationships are set up in the models.
I managed to get rid of the error, so delete works but it's not soft deleting, it's removing the entire row from the database.
Am I calling delete correctly?
Author::find($id)->delete();
I've also tried:
Author::destroy($id);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community