- 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
git clone https://github.com/naywin-programmer/laravel_architectui.git your_project_name
- 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
- 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'));
}
http://127.0.0.1:8000/admin
- set PREFIX_ADMIN_URL in .env
PREFIX_ADMIN_URL=/backend
- now Admin Dashboard Url is
http://127.0.0.1:8000/backend/admin
email: [email protected]
password: password
- config/custom_guards.php
- config/custom_roles.php
- config/custom_admin_permissions.php
- config/custom_user_permissions.php
https://docs.spatie.be/laravel-permission/v3/basic-usage/artisan/