All Questions

54
votes
14answers
119366 views

How can I remove "public/index.php" in the url generated laravel?

Basically I need to remove index.php or public/index.php from the the generated URL in laravel, commonly path is localhost/public/index.php/someWordForRoute, It should be something like localhost/so...
52
votes
10answers
61052 views

Laravel 5 - redirect to HTTPS

Working on my first Laravel 5 project and not sure where or how to place logic to force HTTPS on my app. The clincher here is that there are many domains pointing to the app and only two out of three ...
42
votes
7answers
95560 views

Download files in laravel using Response::download

In Laravel application I'm trying to achieve a button inside view that can allow user to download file without navigating to any other view or route Now I have two issues: (1) below function throwing...
6
votes
3answers
13251 views

Laravel 4 : Route to localhost/controller/action

I'm more or less new to Laravel 4. I've never used routes before but normally what I'm used to is url/controller/action and then the backend routing for me. I've read the documentation for routes and ...
35
votes
9answers
37721 views

How to get a list of registered route paths in Laravel?

I was hoping to find a way to create an array with the registered routes paths within Laravel 4. Essentially, I am looking to get a list something like this returned: / /login /join /password I di...
42
votes
11answers
60915 views

Laravel Controller Subfolder routing

I'm new to Laravel. To try and keep my app organized I would like to put my controllers into subfolders of the controller folder. controllers\ ---- folder1 ---- folder2 I tried to route to a contro...
12
votes
2answers
21615 views

Redirect to homepage if route doesnt exist in Laravel 5

/** Redirect 404's to home *****************************************/ App::missing(function($exception) { // return Response::view('errors.missing', array(), 404); return Redirect::to('/'); })...
24
votes
3answers
34691 views

Laravel Queries Strings

Does anyone know if it's possible to make use of URL query's within Laravel. Example I have the following route: Route::get('/text', 'TextController@index'); And the text on that page is based on...
0
votes
1answers
7069 views

Controller class not found in Laravel 4

I have the following error while trying to run my controller Controller class not found I have this code in my routes.php file Route::get('cms/create-page', 'AdminCMSController@create_page'); ...
0
votes
1answers
3458 views

post request not working Laravel 5

I am trying to submit a form using post method, but it does not seem to be working. I have enabled error debug on but still no error is shown. After submitting the form the same page is loaded without...

Previous Next