问题描述
需要帮助将Admin Lte主题集成到ra ravel 5.4中,我尝试将其集成,但是它显示黑页.
Need Help to integrate Admin Lte theme in la ravel 5.4 , i try to integrate it but it show black pages.
推荐答案
使用以下命令下载laravel项目文件夹:
Download laravel project folder by using:
composer create-project --prefer-dist laravel/laravel laravelLTE
创建名为:laravel的数据库,并在.env文件中进行与数据库相关的更改
Create database named :laravel and make database related changes in .env file
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=null
转到文件夹路径
/var/www/html$ cd laravelLTE
要运行所有未完成的迁移,请执行migration Artisan命令:
To run all of your outstanding migrations, execute the migrate Artisan command:
/var/www/html/laravelLTE$ php artisan migrate
万一发生字符串错误,请在以下页面中进行更改:
In case of string error make changes in following page :
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
要安装Admin Lte主题,请在终端中按以下命令进行操作:
Inorder to install Admin Lte theme hit following commands in your terminal:
composer require "acacha/admin-lte-template-laravel:4.*"
composer update
要注册服务提供商,请编辑文件
To register the Service Provider edit the file
并将以下行添加到provider数组:
And add following line to providers array:
Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class,
要注册别名,请编辑文件
To Register Alias edit the file
并将以下行添加到别名数组:
And add following line to alias array:
'AdminLTE' => Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class,
从供应商软件包文件中获取应用程序中的配置文件.
Get configuration file in your application from vendor package file.
/var/www/html/laravelLTE$ php artisan vendor:publish --tag=adminlte –force
/var/www/html/laravelLTE$ php artisan serve
谢谢你
希望这可以帮助您整合adminLTE主题
thank you
I hope this will help you to integrate adminLTE theme
这篇关于如何在Laravel 5.4中集成Admin Lte主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!