Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

So Beautiful Admin Dashboard with Basic Multiple Auth and CRUD

Notifications You must be signed in to change notification settings

naywin-programmer/laravel_architectui

Repository files navigation

Used Versions

  • Laravel v6.0.3
  • Laravel Passport v7.4.1
  • Laravel Ui v1.0.1
  • Laravel Permission v3.0
  • Laravel Datatable v9.6.0
  • Laravel JsValidation v2.5.0
  • Laravel Mix Purgecss v4.1.0

Download

git clone https://github.com/naywin-programmer/laravel_architectui.git your_project_name

To Use

  • create .env file
  • create database
  • composer install
  • php artisan key:generate
  • npm install
  • npm run dev
  • php artisan migrate:refresh
  • php artisan passport:install
  • php artisan db:seed

Custom Admin Route File

  • for admin routes, you can write admin routes in this file
routes/admin_web.php
  • if you want more seperated route files, you can edit in Laravel build-in RouteServiceProvider.php file
// for web
protected function mapWebRoutes()
{
    Route::middleware('web')
         ->namespace($this->namespace)
         ->group(function () {
            require base_path('routes/web.php');
            require base_path('routes/admin_web.php');
        });
}

// for api
protected function mapApiRoutes()
{
    Route::prefix('api')
         ->middleware('api')
         ->namespace($this->namespace)
         ->group(base_path('routes/api.php'));
}

Admin Dashboard Url

Default
http://127.0.0.1:8000/admin
Custom Prefix Name For Admin Dashboard (edit in .env or config/app.php)
  • set PREFIX_ADMIN_URL in .env
PREFIX_ADMIN_URL=/backend
  • now Admin Dashboard Url is
http://127.0.0.1:8000/backend/admin

Admin Account (in SuperAdminSeeder.php file)

email: [email protected]
password: password

To create default guards, roles, permissions for Laravel Permission by using seeder

  • config/custom_guards.php
  • config/custom_roles.php
  • config/custom_admin_permissions.php
  • config/custom_user_permissions.php

To create Permission and Role from Terminal (Laravel Permission)

https://docs.spatie.be/laravel-permission/v3/basic-usage/artisan/

Screenshots

Admin Login Screen

Admin Home Screen

User Screen

Admin User Screen

User Role Screen

Admin User Role Screen

Permission Screen

Categories Screen