guruji/dashboard
Composer 安装命令:
composer require guruji/dashboard
包简介
subadmin 2 bootstarp theme https://startbootstrap.com/themes/sb-admin-2/
README 文档
README
These are the following steps to be followed up, and after installing this package you to be getting the following stuffs:
#1. merely login & dashboard of the backend of your project where you may make your own pages into your views aacording to your needs. Here is the screenshot https://prnt.sc/rfhreq
#2. you are to get one helper where you may manage your theme project's logo, and facebook, twitter, Linked, Instagram , Address, and Contact email fields that you to be geeting globally into your project.
#3. Saperately routes' file called web_admin.php into your routes(folder) so that where youre to manage your backends routes.
#4. And rest of the files, pages, buttons, and form you may get from https://startbootstrap.com/themes/sb-admin-2/ #5. if you still have any single query while installing and availing the package feel free to leave the annotations here, I will entirely help you #6. I still work to serve you my best.
Note: your frontend login will be as laravel provides, roles & permission package to be installed with this dashboard that you may use. And after installing this package, make sure to check and go to the files and folders are: #1. resources/views #2. routes/web_admin.php(where your admin means backend's routes are available). #3. config/constant.php(where your constant get defined for the users' permission). #4. Controllers/Admin(where your backend's controllers are available). #5. Controllers/Admin/Auth(where your backaend's authenticationss controllers are available).
Step:1, Run the following commands
php artisan make:auth
composer require guruji/dashboard
composer require spatie/laravel-permission
composer require laravelcollective/html
php artisan vendor:publish --provider="Guruji\Dashboard\DashboardServiceProvider"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
if you also want to changes then you can fire bellow command and get config file in config/permission.php.
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="config"
Step:2, Add into config/auth.php
'web_admin' => [ 'driver' => 'session', 'provider' => 'users', ],
Step:3, Add into User.php model
use Spatie\Permission\Traits\HasRoles;
use HasRoles;
Step:4, Add into users_table
use Spatie\Permission\Models\Role;
Step:5, Now open config/app.php file and add service provider and aliase into config/app.php
'providers' => [
....
Guruji\Dashboard\DashboardServiceProvider::class,
Spatie\Permission\PermissionServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
],
'aliases' => [
....
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
],
Step:6 Add into app/Http/Kernel.php
'web_admin' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
....
protected $routeMiddleware = [
....
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
]
....
Step:7 Add into RoutServiceProvider.php
public function map()
{
$this->mapWebAdminRoutes();
}
protected function mapWebAdminRoutes()
{
Route::middleware('web_admin')
->namespace($this->namespace)
->group(base_path('routes/web_admin.php'));
foreach (glob(app_path() . '/Helpers/*.php') as $file) {
require_once($file);
}
}
Step:8 Run
php artisan migrate
php artisan db:seed --class=AdminSeeder
Step:9, And, here we go!
http://localhost/..your_project.../password/reset
http://localhost/..your_project.../admin/login
id: uamitroy@gmail.com
password: password
Thank You! Build Splendid Stuffs!
guruji/dashboard 适用场景与选型建议
guruji/dashboard 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 67 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 03 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 guruji/dashboard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 guruji/dashboard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 67
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-10