/silhouette

:bust_in_silhouette: Quick basic frontend profile page for Laravel building on the default Laravel 5 Authentication scaffolding.

Primary LanguageHTMLMIT LicenseMIT

👤 Silhouette

A useful quick boilerplate on top of the default laravel auth scaffolding that provides an interface for users to manage their profile.

Requirements

Basic install of Laravel 5.4 and up. Auth scaffolding & a user to login as.

Install

First you will need to have installed the default Laravel Auth scaffolding.

Instructions can be found here, but basically:

artisan make:auth
artisan migrate

Now you can install using Composer

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

Twmbx\Silhouette\ServiceProvider::class,

Publish package assets to get

  • a ProfileController.php in app/Http/Controllers/Auth/
  • a profile.blade.php in resources/views/vendor/silhouette/
artisan vendor:publish

You can customise the view as needed and use the ProfileController to add your own functionality.

In your resources/views/layouts/app.blade.php find <a href="{{ route('logout') }}" and add the following above it:

<a href="{{ route('profile.view') }}">Profile</a>

Contributing

Please see CONTRIBUTING

License

The MIT License (MIT). Please see License File for more information.

Made with ❤️ in 🇿🇲