Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#5572 by Travin
27 Jan 2018, 04:35
Hi guys!
I know Aimeos has account page already. But honestly i don't understand how can i access it? Which URL it placed or how I need to config routes to see it? Can anyone please explain it to me a little bit? Thanks a lot!
#5582 by Travin
28 Jan 2018, 14:37
Thank you for the answer Anton!
I have Auth::routes(); at my routes/web.php. Still don't understand how can i see account page :shock:
I'm currently authorized on my website. There are no account page link or account information. Orders history, user's addresses and so on.
#5583 by antonlinderer
28 Jan 2018, 14:57
Auth::routes() is just a shorthand for the routes:

// Authentication Routes...
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout');

// Registration Routes...
Route::get('register', 'Auth\RegisterController@showRegistrationForm');
Route::post('register', 'Auth\RegisterController@register');

// Password Reset Routes...
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
#5615 by Travin
31 Jan 2018, 19:04
Okay now I have at my web.php:
Code: Select allRoute::get('/', function () {
    return view('welcome');
Route::get('/home', 'HomeController@index')->name('home');

Also we defined Aimeos\Shop\ShopServiceProvider::class at Providers section of config/app.php.
And we have Aimeos account controller at \vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Controller\AccountController.php
Still don't understand how I need to routing URL to Aimeos account controller. I have 404 at this url
#5619 by Travin
01 Feb 2018, 09:57
Okay, I'm logged in and redirected to /home URL.
View for the url is placed here: \resources\views\home.blade.php
Code: Select all@extends('')

<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">Dashboard</div>

                <div class="panel-body">
                    @if (session('status'))
                        <div class="alert alert-success">
                            {{ session('status') }}

                    You are logged in!

It's typical laravel home page and don't have relation with Aimeos. How can I attach this with Aimeos?
I tried to add @yield('aimeos_header'). Nothing, it's empty. I tried to add <?= $aibody['basket/mini'] ?> and I got undefined variable. I tried to extend @extends('app') (my working template for Aimeos products pages) instead of @extends('') and I got undefined variable at my app.blade.php
Don't see anything about that at the docs :(
#6136 by 吳家豪
18 May 2018, 10:10
I just follow the install instruction to install this package and make auth with laravel ...but after I login I still can see my order history .... but in the backend I can see the order, just like "Travin" what should I do to see order histry just use /account or something like it ? OR I should create a new page ? .... I dont understand I can see some directory under
/ext/ai-client-html/client/html/templates like 'basket' and 'account' ... why I can see /basket now but can't see /account