laravel-routing
How Can I Remove “public/index.php” in the Laravel Url? [duplicate]
Option 1: Use .htaccess If it isn’t already there, create an .htaccess file in the Laravel root directory. Create a .htaccess file your Laravel root directory if it does not exists already. (Normally it is under your public_html folder) Edit the .htaccess file so that it contains the following code: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule … Read more
How Can I Remove “public/index.php” in the Laravel Url generated? [duplicate]
Option 1: Use .htaccess If it isn’t already there, create an .htaccess file in the Laravel root directory. Create a .htaccess file your Laravel root directory if it does not exists already. (Normally it is under your public_html folder) Edit the .htaccess file so that it contains the following code: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule … Read more
How to use the request route parameter in Laravel 5 form request?
That’s very simple, just use the route() method. Assuming your route parameter is called id: public function authorize(){ $id = $this->route(‘id’); }