Try to use:
Auth::user()->statuses()->find('{$statusId}')->delete();
Hope it works!
PS: If you are starting with Laravel I can recommend you a Laravel step-by-step course: Learn Laravel 5.0 => 5.1
Best wishes.
If it's a unique ID, why do you even need the user?
Status::destroy($id);
thomastkim said:
If it's a unique ID, why do you even need the user?
Status::destroy($id);
if you have a unique id, you only need to use the destroy method of 'Status' model
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community