nonoesp/authenticate

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

A Laravel helper package for frequently-used operations—so you don't have to think.

7.0 2020-03-03 15:54 UTC

README

Simple authentication for Laravel.

Installation

composer require nonoesp/authenticate

Next, add the following middlewares to your app/Http/Kernel.php file.

  • LoginMiddleware · restricts routes to logged users
  • RememberMiddleware · remembers logged users
protected $middleware = [
        /// nonoesp/authenticate
        // TODO - verify we need these first two here
        \Illuminate\Session\Middleware\StartSession::class,
        \Illuminate\View\Middleware\ShareErrorsFromSession::class,			
        \Nonoesp\Authenticate\Middleware\RememberLogin::class,        
        /// ...
];

protected $routeMiddleware = [
        /// nonoesp/authenticate
        'login' => \Nonoesp\Authenticate\Middleware\RequireLogin::class,
        /// ...
];

Optionally, publish and customize configuration file.

php artisan vendor:publish --provider="Nonoesp\Authenticate\AuthenticateServiceProvider" --tag=config

License

Authenticate is licensed under the MIT license. (http://opensource.org/licenses/MIT)

Me

Hi. I'm Nono Martínez Alonso (Nono.MA), a computational designer with a penchant for simplicity.

I host Getting Simple—a podcast about how you can live a meaningful, creative, simple life—sketch things that call my attention, and write about enjoying a slower life.

If you find this pacakge useful in any way, reach out on Twitter at @nonoesp. Cheers!