lundi 11 janvier 2016

Laravel routes are not working on live server

I just found the problem on server. all is working fine in my localhost, but on live server, ONLY the home page route is working.

My directory is:

laravel-
        css
        js
        local->
             app
                 HTTP->
                      Controllers->
                                 admin->
                                        Groupcontroller   
             config
              ...

Here is my htacess

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /index.php [L]
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

And my route file is:-

Route::get('/group/detail', 'Groupcontroller@index');
Route::get('/group/add', 'Groupcontroller@create');
Route::get('/group/edit/{id}', 'Groupcontroller@edit');

http://ift.tt/1Q1AYMf

This is not working

Error is encountered :-

Class App\Http\Controllers\Admin\Groupcontroller does not exist

Please help me,Working fine at localhost but not on live. Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire