Skip to content

About

Laravel Basic Auth

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Basic Auth

GitHub tag (latest by date) GitHub Packagist

Installation

You can install this package by composer:

composer require vdhoangson/laravel-basic-auth

Implementation

Use this in routes/web.php

Route::middleware(['basic-auth'])->group(function () {
    //All the routes are placed in here
    Route::get('/home', 'DashboardController@dashboard');
});

OR

Route::get('/home', 'DashboardController@dashboard')->middleware('basic-auth');

Configures

BASIC_AUTH_USERNAME=
BASIC_AUTH_PASSWORD=
BASIC_AUTH_REALM=

About

Laravel Basic Auth

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages