Skip to main content

Installation

Larasell offers an admin panel via an optional package.

You can install the admin panel in four simple steps:

  1. Preparing the installation
  2. Installing the package
  3. Running the migrations
  4. 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 migrate

Create 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.