New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ageekdev/dev-login

Developer Login for Laravel
118,103 9
Install
composer require ageekdev/dev-login
Latest Version:v3.2.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:8 · 9 · 10
License:MIT
Last Updated:Jun 22, 2026
Links: GitHub  ·  Packagist
Maintainer: tintnaingwin

Laravel Developer Login

Latest Version on Packagist Laravel 11.x Laravel 12.x Laravel 12.x GitHub Tests Action Status Total Downloads

This package allows you to login the developer associate actions (e.g.log views).

dev login screenshot

Installation

You can install this package via composer using this command:

composer require ageekdev/dev-login

The package will automatically register itself.

After installing Dev Login, you may publish its assets using the dev:install Artisan command:

php artisan dev:install

Setup developer account

Setup new dev user account.

php artisan dev:user

USAGE

Dev Login default login URI is the /dev/login.

UseDevLoginGuard Middleware

Laravel official packages uses $request->user() to get the user in gate. The default guard is user guard. So You can use UseDevLoginGuard middleware to override this behaviour.

Telescope

You must replace Authorize with UseDevLoginGuard middleware applied to Telescope routes in telescope.middleware config value.

config/telescope.php

<?php

- use Laravel\Telescope\Http\Middleware\Authorize;
+ use AgeekDev\DevLogin\Http\Middleware\UseDevLoginGuard;
use Laravel\Telescope\Watchers;

...

'middleware' => [
   'web',
-   Authorize::class,
+   UseDevLoginGuard::class,
],

...

Vapor UI

You must replace EnsureUserIsAuthorized with UseDevLoginGuard middleware applied to Vapor routes in vapor-ui.middleware config value.

config/vapor-ui.php

<?php

- use Laravel\VaporUi\Http\Middleware\EnsureUserIsAuthorized;
+ use AgeekDev\DevLogin\Http\Middleware\UseDevLoginGuard;
use Laravel\Telescope\Watchers;

...

'middleware' => [
   'web',
-   EnsureUserIsAuthorized::class,
+   UseDevLoginGuard::class,
],

...

Testing

You can run the tests with:

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

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

Related Packages

mike-bronner/laravel-development-settings

Shared settings for Laravel development.

1,265 1
tlx3/laravel-jwt-starter

Boilerplate for using your own API based JWT authentication on Laravel applicati...

305 3
railroad/railcontent

Very simple and flexible CMS system for developers.

104,580 0
petercoles/laravel-minimalistic-login

A minimalistic login for Laravel projects that don't need a full registration an...

27 1
asantanacu/sharelogin

Share login through different laravel apps

21 0

Version History

Version Released PHP Laravel License
v3.2.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v3.1.0 ^8.1 ^10.0|^11.0|^12.0 MIT
v3.0.0 ^8.1 ^10.0|^11.0 MIT
v2.0.0 ^8.1|^8.2 ^9.0|^10.0 MIT
v1.1.1 ^8.1|^8.2 ^9.0|^10.0 MIT
Pre-releases (4)
Version Released PHP Laravel License
v2.0.0-beta.4 ^8.1|^8.2 ^9.0|^10.0 MIT
v2.0.0-beta.3 ^8.1|^8.2 ^9.0|^10.0 MIT
v2.0.0-beta.2 ^8.1|^8.2 ^9.0|^10.0 MIT
v2.0.0-beta.1 ^8.1|^8.2 ^9.0|^10.0 MIT