{"repo":"spatie/laravel-littlegatekeeper","free":true,"listed":false,"github":"https://github.com/spatie/laravel-littlegatekeeper","clone":"git clone https://github.com/spatie/laravel-littlegatekeeper.git","description":"Protect pages from access with a universal username/password","language":"PHP","stars":191,"topics":["laravel","php","security"],"license":"MIT","category":"security-tools","readme_excerpt":"laravel-littlegatekeeper Protect pages from access with a universal username/password combination (set by configuration). Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Postcardware You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using. Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium. The best postcards will get published on the open source page on our website. Install You can install the package via Composer: Start by registering the package's the service provider: Next, publish the config files: Finally, register the middleware: Usage First set up the username and password in your configuration file or .env file In your .env file add: You can protect your routes by applying the middleware: If a user isn't logged in, he will be redirected to the url set in the config file ( littlegatekeeper.authRoute ). Authenticator methods Change log Please see CHANGELOG for more info","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-littlegatekeeper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}