nomercy/adminseeder

This package creates an admin account with .env credentials.

1.0.0 2020-12-04 11:43 UTC

This package is auto-updated.

Last update: 2024-09-28 07:39:13 UTC


README

Version

This package creates an admin account with .env credentials.

It saves you creating your account after every migrate:fresh command.

Install

composer require nomercy/adminseeder

add this to your DatabaseSeeder class.

$this->call(AdminSeeder::class);

Create these entries in your .env file.

By default it creates a user with admin@example.com, password and a random 60 string

ADMIN_EMAIL=
ADMIN_PASSWORD=
ADMIN_API_TOKEN=
php artisan migrate:fresh --seed

Author

👤 Stoney_Eagle

* Twitter: @Stoney_Eagle

* Gitlab: @Stoney_Eagle