Lara-Crud

Package for quick deployment admin panel on Laravel

Lara Crud Admin-Panel

The package is aimed at the fastest deployment and flexible configuration of the admin panel. It has a lot of methods with which you can set it up as you like.

Lara-Crud

Quick start

Introduction

The package includes many methods that will allow you to adapt the admin panel to your needs.

Installation

A place to include any other types of information that you’d like to include about yourself.

  1. To get the latest version, simply require the project using Composer:

    $composer require trafik8787/lara-crud --dev

  2. Run the installation and wait for it to finish. (Beforehand, make sure that you are connected to the database)

    php artisan lara:example

  3. Add service provider App\Providers\LaraCrudProvider::class to /config/app.php file.

    'providers' => [
    ...
    App\Providers\LaraCrudProvider::class,
    ],

  4. Finish you can go to the link http://you_domain/admin

Create new Pages

php artisan lara:node ExampleNode

The command creates two classes in the class ExampleNode and ExampleNodeModel. Add them to the array in the provider App\Providers\LaraCrudProvider:

protected $nodes = [
...
'App\Http\Node\Model\ExampleNodeModel' => 'App\Http\Node\ExampleNode',
];

ou can go to http://you_domain/admin/example_node_model

Navigation

Example of an array of navigation in the file Add service provider App\Providers\LaraCrudProvider::class

Parameter List

  • tabs

    Inside the tabs array, there are tabs

    Screenshot_tab.png

  • tab_name

    Tab name

  • settings

    Tab Settings

  • priory

    Sorting order

  • icon

    Class Icons http://fontawesome.io/icons/

            
            Example:
            protected $navigation = [

                'App\Http\Node\ExampleNode' => [
                    'priory' => 1,
                    'title' => 'Example',
                    'icon' => 'fa-user-secret'
                ],

                'tabs' => [

                    'tab_name' => [

                        'settings' => [
                           'icon' => 'fa-user-secret',
                            'priory' => 2,
                        ],

                        'node' => [

                            'App\Http\Node\Articles' => [
                                'priory' => 2,
                                'title' => 'Articles',
                                'icon' => 'fa-tree'
                            ]
                        ]
                    ],

                    'tab_name2' => [
                        ...
                    ]

                ],

                'App\Http\Node\Users' => [
                    'priory' => 3,
                    'title' => 'Users',
                    'icon' => 'fa-tree'
                ],

            ];