Support the ongoing development of Laravel.io →
Configuration Eloquent
Last updated 1 year ago.
0
Route::get("/user/{id}/delete", "UserController@destroy");

You really should read documentation before you post something to forum.

http://laravel.com/docs/routing

Last updated 1 year ago.
0

I am read the documentation so using this Route::get("/user/{id}/delete", "UserController@destroy"); before create the post but not work

Last updated 1 year ago.
0

You Should never have the need to use controller functions inside Eloquent models!

Last updated 1 year ago.
0

Thanks ssshenkie.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.