Installation
Larasell offers an admin panel via an optional package.
You can install the admin panel in four simple steps:
- Preparing the installation
- Installing the package
- Running the migrations
- Creating an admin user
Add this to the post-autoload-dump scripts in your composer.json, after package discovery:
1"scripts": {
2 "post-autoload-dump": [
3 "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
4 "@php artisan package:discover --ansi",
5 "@php artisan larasell:link --ansi"
6 ]
7}Composer links the bundled JS and CSS of the extension, which you can use to customise the admin panel, into public/vendor/larasell-admin on install and update.
Install the package and run the migrations:
1composer require larasell-dev/admin
2php artisan migrateCreate an admin:
1php artisan larasell:create-admin --name="Ada Lovelace" --email="ada@example.com" --password="secret"The panel is available at /admin. Change the path with LARASELL_ADMIN_PATH in your .env file.