Laravel-Auth-Profile
This laravel package takes advantage of the already provided Auth generation and extends it, enabling user profiles., (*1)
Getting Started
These instructions will enable you to plug this package into your laravel installation and customise with ease., (*2)
Installing
Step 1: Run laravel's Authentiaction scaffolding, (*3)
php artisan make:auth
Step 2: Open a command window in the your laravel project folder and run, (*4)
composer require mressex/laravel-auth-profile
Step 3: Register the AuthProfileServiceProvider::class, (*5)
- Open PROJECT_NAME/config/app.php
- In the
'providers' => [] array, under Illuminate\View\ViewServiceProvider::class, add MrEssex\LaravelAuthProfile\AuthProfileServiceProvider::class,
Step 4: To customise the views run php artisan vendor:publish. Now you can edit the views in PROJECT_NAME/resources/views/vendor/laravelauthprofile, (*6)
Step 5: In your resources/views/layouts/app.blade.php Navigate to line 63, or <a href="{{ route('logout') }}" and add the following above it:, (*7)
<a href="{{ route('profile') }}">Profile</a>
Common Errors
-
[Login] view doesn't exist Ensure you have ran php artisan make:auth
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us., (*8)
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository., (*9)
Authors
-
Kyle Essex - Initial work - MrEssex
See also the list of contributors who participated in this project., (*10)
License
This project is licensed under the MIT License - see the LICENSE.md file for details, (*11)