samedi 2 janvier 2016

routing error in laravel 5

I am new to laravel runing a project in it,i got error when i enter a module name to url NotFoundHttpException in RouteCollection.php line 161 enter image description here

And here is my routes.php file Code:

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', ['as' => 'home', 'uses' => 'Landing@index']);
Route::get('/buyerregistration',['as' => 'buyerregistration', function () {
    return view('buyerregistration');
}]);

Route::get('owarehouse/{id}',  ['as' => 'owarehouse',function () {
    return view('owarehouse');
}]);

Route::get('/SMM',  ['as' => 'SMM',function () {
    return view('SMM');
}]);

Route::get('productconsumer/{id}/{openwish_id?}',array(
 'as' => 'productconsumer', 
 'uses' => 'ProductController@productconsumer'));

I have .htacces file in my /public folder as:

<IfModule mod_rewrite.c>

    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Can anyone help me to sort out this, Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire