twmbx/silhouette

This package is abandoned and no longer maintained. No replacement package was suggested.

Quick frontend profile page for Laravel building on the default Laravel 5.4^ Authentication scaffolding.

dev-master / 1.0.x-dev 2020-10-02 11:14 UTC

This package is auto-updated.

Last update: 2020-11-02 11:20:09 UTC


README

This project answered a need I had many moons ago for a version of Laravel long gone.
Times have changed. Please consider using Jetstream.

👤 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 🇿🇲