/login is not worked...

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
anonymous.opnet
Posts: 1
Joined: 13 Mar 2016, 12:01

/login is not worked...

Post 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

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: /login is not worked...

Post by aimeos » 13 Mar 2016, 14:39

You forgot to register the /login route:

Code: Select all

Route::get('login', 'Auth\AuthController@getLogin');
Route::post('login', 'Auth\AuthController@postLogin');
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply