Laravel Light Bootstrap Dashboard
Laravel Package for integrating Light Bootstrap Dashboard template and this package is Laravel Mix friendly. Currently this package can be integrated easily only on fresh installation., (*1)
Installation
composer require atnic/laravel-light-bootstrap-dashboard
If you are using Laravel 5.5 above skip this step. Add this line on config/app.php
, on providers
, (*2)
'providers' => [
...
Atnic\LightBootstrapDashboard\Providers\AppServiceProvider::class,
...
]
And then run,, (*3)
php artisan make:light-bootstrap-dashboard
Let's see what we've install. First, make sure that you already ran php artisan migrate
command, then do, (*4)
php artisan serve
Viola! You've running a Laravel site using Light Bootstrap Dashboard., (*5)
, (*6)
, (*7)
, (*8)
For more information on command, (*9)
php artisan make:light-bootstrap-dashboard --help
Usage
This package provides view for auth and app. Take a look at resources/views/layouts/app.blade.php
., (*10)
In this file you can extends global section like menu., (*11)
To extends menu add this in app.blade.php
, (*12)
@section('sidebar-menu')
<ul class="nav">
<li class="active">
<a class="nav-link" href="{{ route('home') }}">
<i class="pe-7s-home"></i>
<p>Home</p>
</a>
</li>
</ul>
@endsection
This package give you free of choice to use any Laravel Package for Menu. We recommend spatie/laravel-menu or lavary/laravel-menu., (*13)
Any new created page should extends this view., (*14)
@extends('layouts.app')
// Your blade here
Configuration and Views Customization
Config
To publish this package config to your app config run, (*15)
php artisan vendor:publish --provider="Atnic\LightBootstrapDashboard\Providers\AppServiceProvider" --tag="config"
Views
To publish this package views so you can customize on your own run, (*16)
php artisan vendor:publish --provider="Atnic\LightBootstrapDashboard\Providers\AppServiceProvider" --tag="views"
Next Step
First of all, you should understand how to use Laravel Mix., (*17)
Light Bootstrap Dashboard need some package on npm. First you need to run, (*18)
npm install
Install Light Bootstrap Dashboard needed package from npm, (*19)
npm install --save-dev animate.css bootstrap bootstrap-notify bootstrap-select bootstrap-switch chartist flatui-radiocheck font-awesome popper.js pixeden-stroke-7-icon
Run Laravel Mix command, (*20)
npm run development
or use production
minimize output, (*21)
npm run production
Then have a good look on these files
- webpack.mix.js
- resources/assets/js/light-bootstrap-dashboard.js
- resources/assets/js/auth.js
- resources/assets/sass/light-bootstrap-dashboard.scss
- resources/assets/sass/auth.scss
, (*22)
Happy experimenting!, (*23)