Laravel – Initiate smart admin

Laravel Devlion Development

SmartAdmin for laravel framework for fast database representation as RESTfull.
SmartAdmin – more than a simple admin panel.

System requirements:

Installation:

Step1

Add to your composer.json:
"repositories": [
      {
        "type": "package",
        "package": {
          "name": "devlion/smartcms",
          "version": "@dev",
          "source": {
            "url": "https://gitlab.devlion.co/root/smartcms.git",
            "type": "git",
            "reference": "ver5.4"
          }
        }
      }
    ],
Look at "reference" which means what kind of package to use and it equals to laravel version.

And to require section in (composer.json too):
"devlion/smartcms": "@dev"
Add this to composer.json, section autoload psr-4:
"\Devlion\\SmartCms\\": "vendor/devlion/smartcms/src"
Make in console:
sudo composer install

Step2

Add to Providers section app\config\app.php:
Devlion\SmartCms\AdminServiceProvider::class
Make in console:
sudo composer dump-autoload
sudo php artisan smartadmin:install --step=1
sudo php artisan smartadmin:install --step=2

Step3

Make in console:
sudo php artisan smartadmin:install --step=3

Step4

Go to http://your_site/admin/login enter credentials:  superadmin@smart.com / password 
Enjoy system.

QA

1. Step2 could be replaced by:

Add into your app\Console\Kernel.php:
Devlion\SmartCms\Commands\SmartAdmin::class
Make in console:
sudo php artisan smartadmin:install --step=1
Add into into config/app.php providers array section:
Devlion\SmartCms\AdminServiceProvider::class,
Add into App/Http/Kernel.php $middlewareGroups array section:
\Devlion\SmartCms\Middlewares\Locale::class,
Add into config/app.php aliases array section:
'Admin' => Devlion\SmartCms\Facades\Admin::class,
Make in console:
sudo php artisan smartadmin:install --step=2

Links

2. More information about installation in SmartAdmin – readme

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.