balajidharma/laravel-admin-api

The Laravel Admin API - Laravel Admin API Boilerplate

v1.0.0 2024-04-14 14:45 UTC

This package is auto-updated.

Last update: 2024-12-14 16:31:06 UTC


README

Admin API for Laravel projects.

Total Downloads Latest Stable Version License

Built with

Installation

With Docker Desktop

  • To get started, you need to install Docker Desktop.
  • You may run the following command in your terminal
  • Windows open WSL2 Linux terminal. Docker Desktop WSL 2 backend
  • docker run --rm -v "$(pwd)":/opt -w /opt laravelsail/php83-composer:latest bash -c "composer create-project balajidharma/laravel-admin-api admin-app && cd admin-app && php artisan sail:install --with=mysql,redis,meilisearch,mailhog,selenium"
  • cd admin-app
  • ./vendor/bin/sail pull mysql redis meilisearch mailhog selenium
  • ./vendor/bin/sail build
  • ./vendor/bin/sail up
  • ./vendor/bin/sail npm install
  • ./vendor/bin/sail npm run dev
  • ./vendor/bin/sail artisan vendor:publish --tag=admin-core
  • ./vendor/bin/sail artisan migrate --seed --seeder=AdminCoreSeeder
  • Now open http://localhost/

Without Docker Desktop

  • To get started, you need to install PHP Composer.
  • composer create-project balajidharma/laravel-admin-api admin-api
  • cd admin-api
  • Create a new MYSQL database and update database details in .env file
  • php artisan vendor:publish --tag=admin-core
  • php artisan migrate --seed --seeder=AdminCoreSeeder
  • npm install
  • npm run dev
  • php artisan serve
  • Now open http://localhost:8000/
Super Admin Login

Admin Configuration:

To change the Admin Prefix, change prefix on config/admin.php or add the ADMIN_PREFIX on env

'prefix' => env('ADMIN_PREFIX', 'admin'),

Postman Collection

Also Try

License

The Laravel framework is open-sourced software licensed under the MIT license.