⛔ ABANDONED
This project answered a need I had many moons ago for a version of Laravel long gone.
Times have changed. Please consider using Jetstream., (*1)
:bust_in_silhouette: Silhouette
A useful quick boilerplate on top of the default laravel auth scaffolding that provides an interface for users to manage their profile., (*2)
Requirements
Basic install of Laravel 5.4 and up.
Auth scaffolding & a user to login as., (*3)
Install
First you will need to have installed the default Laravel Auth scaffolding., (*4)
Instructions can be found here, but basically:
``` bash
artisan make:auth
artisan migrate, (*5)
Now you can install using Composer
``` bash
composer require twmbx/silhouette dev-master
If you're on Laravel 5.4:
Add the service provider to your the providers array in config/app.php
``` php
Twmbx\Silhouette\ServiceProvider::class,, (*6)
Publish package assets to get
- a ProfileController.php in `app/Http/Controllers/Auth/`
- a profile.blade.php in `resources/views/vendor/silhouette/`
``` bash
artisan vendor:publish
You can customise the view as needed and use the ProfileController to add your own functionality., (*7)
In your resources/views/layouts/app.blade.php find <a href="{{ route('logout') }}" and add the following above it:
html
<a href="{{ route('profile.view') }}">Profile</a>, (*8)
Contributing
Please see CONTRIBUTING, (*9)
License
The MIT License (MIT). Please see License File for more information., (*10)
Made with :heart: in :zambia:, (*11)