Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2626 by anonymous.opnet
13 Mar 2016, 12:26
hi
i'm installed aimeos from laravel 5.1 last release.
after login from /admin get error
---
on url : mysite.com/login
NotFoundHttpException in RouteCollection.php line 161:
---
i added
-----
// Authentication routes...
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');

// Registration routes...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');
----
to routes.
and
----
'routes' => array(
'login' => array(),
'admin' => array('middleware' => array('auth')),
'account' => array('middleware' => array('auth')),
'default' => array(),
'confirm' => array(),
'update' => array(),
),
--- to config/shop.php
& run
--
php artisan aimeos:account my@mymail.com --admin
---
please help
#2627 by aimeos
13 Mar 2016, 14:39
You forgot to register the /login route:
Code: Select allRoute::get('login', 'Auth\AuthController@getLogin');
Route::post('login', 'Auth\AuthController@postLogin');