Account page access

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!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Account page access

Post 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!
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

Re: Account page access

Post by antonlinderer » 28 Jan 2018, 11:53

you need to have in your routes/web.php file following line of code:
Auth::routes();
For more info goto: https://laravel.com/docs/5.5/authentica ... quickstart

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Account page access

Post 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.
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

Re: Account page access

Post 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');

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Account page access

Post by Travin » 31 Jan 2018, 19:04

:?
Okay now I have at my web.php:

Code: Select all

Route::get('/', function () {
    return view('welcome');
});
Auth::routes();
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 mydomen.com/account to Aimeos account controller. I have 404 at this url
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

Re: Account page access

Post by antonlinderer » 31 Jan 2018, 21:36

for instance for login you need to use:
http://yourdomain.com/login

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Account page access

Post 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('layouts.app')

@section('content')
<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') }}
                        </div>
                    @endif

                    You are logged in!
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
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('layouts.app') and I got undefined variable at my app.blade.php
Don't see anything about that at the docs :(
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

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

Re: Account page access

Post by aimeos » 02 Feb 2018, 17:58

Please have a look into this article: https://aimeos.org/docs/Laravel/Create_new_pages
It's also valid if you want to extend existing Laravel pages like /home
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

吳家豪
Posts: 1
Joined: 17 May 2018, 09:27

Re: Account page access

Post 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

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

Re: Account page access

Post by aimeos » 20 May 2018, 10:20

The URL to the "My account" page is "/myaccount"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply