I want to install quickadmin
to create a quick admin panel, I am using Laravel 5.3 and I have followed the step to install:
Create new project
composer create-project laravel/laravel ProjectName --prefer-dist
2.Install quickadmin
composer require laraveldaily/quickadmin
Add Laraveldaily\\Quickadmin\\QuickadminServiceProvider::class,
to your \\config\\app.php
providers after App\\Providers\\RouteServiceProvider::class,
Configure your .env file with correct database information
php artisan quickadmin:install
and fill the required information. but this error appear
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Laraveldaily\Quickadmin\QuickadminServiceProvider' not found
What's happend?
I think you left one step and that is clear the cache. Please try after clear the cache.
You can run following command after 3rd step :
php artisan config:cache
php artisan config:clear
php artisan cache:clear
These steps can be followed to install quickadminpanel without any difficulty
composer create-project laravel/laravel ProjectName --prefer-dist
cd ProjectName
php artisan clear-compiled
composer require laraveldaily/quickadmin
php artisan clear-compiled
Open:
config/app.php
insert in the $providers array after Illuminate\\View\\ViewServiceProvider::class,
Laraveldaily\\Quickadmin\\QuickadminServiceProvider::class,
Open:
config/app.php
insert
Laraveldaily\\Quickadmin\\QuickadminServiceProvider::class,
Open:
app/Providers/AppServiceProvider.php
insert after use Illuminate\\Support\\ServiceProvider;
use Illuminate\\Support\\Facades\\Schema;
insert in boot() function
Schema::defaultStringLength(191);
Create a database(if you are using something like xampp, create it in phpmyadmin)
Modify .env file to add database configurations, db name(the one which you created), username(usually root), password
php artisan config:cache
php artisan config:clear
php artisan quickadmin:install
enter admin email and password (will be used to login to quickadminpanel everytime, so choose ones you can easily remember)
Open:
App\\Http\\Kernel.php
insert in the $routeMiddleware array
'role' => \\Laraveldaily\\Quickadmin\\Middleware\\HasPermissions::class,
php artisan serve
Open browser, url: localhost:8000/admin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.