Laravel helps make the process easy using resource controllers. Use the following artisan command to create resourcefull controller : php artisan make:controller ResourceController --resource Output: To create normal controller , use the following artisan command php artisan make:controller TestController
How to get current route name in Laravel in Hindi Laravel में Current Route Name पता करने के लिए हमारे पास 2 तरीके हैं 1. By Using Request Facade i) url() method 2. By Using Route Facade i) current()->getName() 3. By Using URL Facade i) current() method ii) full() method 4. 1. Using Request Facade public function byRequestFacade () { $ routeName = Request :: url (); dd ($ routeName ); } 2. Using Route Facade public function byRouteFacade () { $ route = Route :: current () -> getName (); ...