Skip to content

mohammad-ashouri/davari_new

Repository files navigation

Persian admin dashboard

Tech Stack

Client: TailwindCSS + DaisyUI + tw-elements + Line Awesome

Server: Laravel v10

Packages and usages: Jquery + Ajax + TinyMce + morilog/jalali + SweetAlert + niklasravnsborg/laravel-pdf + phpoffice/phpspreadsheet + spatie/laravel-permission

Installation

Clone this repository

  cd laravel-admin-panel-template/
  cp env.example env

Config .env file

  composer i
  npm i
  php artisan migrate --seed
  npm run build

Run Locally

Clone the project

  git clone https://github.com/mohammad-ashouri/laravel-admin-panel-template

Go to the project directory

  cd laravel-admin-panel-template/

Copy env.example and modify that

Migrate database

  php artisan migrate:fresh --seed

Install dependencies

  npm i
  composer i

Build from project

  npm run build

To start the server this project run

  php artisan serve

Project starts at localhost:8000

Usage/Examples

To change default user:

Go to users migration and change add user query and migrate fresh

php artisan migrate:fresh --seed

To change menus go to middlewares/MenuMiddleware and add in array like this:

array_number => [
                    'title' => 'Menu Title',
                    'link' => 'Menu Link',
                    'class' => 'Line Awesome Class',
                    'permission' => "Your Permission Name",
                    //If you want to add submenu(s)
                    'childs' => [
                        array_number => [
                            'title' => 'Submenu Title',
                            'link' => 'Submenu Link',
                            'class' => 'Line Awesome Class',
                            'permission' => "Your Permission Name",
                        ],
                    ]
                ],

To set permission for controller functions add this to first of controller class. For example:

function __construct()
    {
        $this->middleware('permission:لیست کاربران', ['only' => ['index']]);
    }

Steps to add new equipment:

1- Add new route (resource)

2- Add new controller

3- Add new model + migration

4- Copy from cpu Cpus folder and change fields and variables

5- Copy CpuController scripts and config that by your model

6- Config model

7- Add new permissions by your model

For support, email m.ashouri.wdev@gmail.com.

Please donate me with the following methods to get energy! thank you

Tron (trc20) or Tether (trc20): TRay31N4sJfDXrT3zSennr74RGX4x9HehU

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published