laravel-extended-user
This Laravel package adds profile page, account page, and extra features to Laravel's built-in Auth system, (*1)
Requirements
Screenshots
, (*2)
, (*3)
, (*4)
Installation
It is recommended to install this package in a fresh installation of Laravel., (*5)
Laravel's built-in Auth System
This package is integrated with Laravel's built-in Auth System,
so you must first run this command if you have not run it yet:, (*6)
php artisan make:auth
Now go to your (env) file and make sure that you have selected your database., (*7)
Install the package using composer
Now install the package using composer by running the following command:, (*8)
composer require aliabdulaziz/laravel-extended-user
Add the service provider (for Laravel < 5.5)
Go to: (Your Laravel App) --> config --> app.php, (*9)
and add the following line under 'Package Service Providers' comment:, (*10)
Aliabdulaziz\LaravelExtendedUser\LaravelExtendedUserServiceProvider::class
Publish the config file
Run the following command to publish the package config file:, (*11)
php artisan vendor:publish --provider="Aliabdulaziz\LaravelExtendedUser\LaravelExtendedUserServiceProvider" --tag=config
The config file is named (laravelextendeduser.php) and will be located in the 'config' folder., (*12)
Publish the assets (CSS and JS files)
Run the following command to publish the package assets:, (*13)
php artisan vendor:publish --provider="Aliabdulaziz\LaravelExtendedUser\LaravelExtendedUserServiceProvider" --tag=assets
Migrate
Run the artisan migrate command to create the users table:, (*14)
this command will also migrate the package migration file by which the profile field is added to the users table., (*15)
php artisan migrate
Create the symbolic link
The following command will create a symbolic link from 'public/storage' to 'storage/app/public'.
This is neccessary to access the user profile image (avatar)., (*16)
php artisan storage:link
Access 'Profile' and 'Account' pages
Now you can access the 'profile' and the 'account' pages by visiting the following routes:, (*17)
Customization
To customize the package default views publish them to your views folder by running the following command:, (*18)
php artisan vendor:publish --provider="Aliabdulaziz\LaravelExtendedUser\LaravelExtendedUserServiceProvider" --tag=views
Now make whatever customization you want on the published views., (*19)
you can also publish the assets source files (sass and js files) by running the following command:, (*20)
php artisan vendor:publish --provider="Aliabdulaziz\LaravelExtendedUser\LaravelExtendedUserServiceProvider" --tag=src
these files will be located in (Your Laravel app) --> resources --> assets --> vendor --> laravelextendeduser., (*21)