Bootstrap 4 responsive admin template
documented by Sean Ngu
Created: 28/April/2020
By: Sean Ngu
Email: nguoksiong@live.co.uk
Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to email your question to my email nguoksiong@live.co.uk. Thanks so much!
Follow the following step to install the laravel in your localhost
You may refer to their official documentation for how to setup the development environment.
Setup Guide
<!-- run the following command --> cd /your-path-url/template_laravel composer install npm install npm run dev php artisan serve <!-- browse the url --> http://127.0.0.1:8000/
Make sure PHP >= 7.0.0 & node.js has been installed on your localhost / server
File structure overview for Laravel Version
template_laravel/ ├── artisan ├── composer.json ├── package.json ├── phpunit.xml ├── readme.md ├── server.php ├── webpack.mix.js ├── app/ ├── bootstrap/ ├── config/ ├── database/ ├── public/ ├── resources/ │ ├── lang │ ├── js │ ├── scss │ └── views │ ├── index.blade.php │ ├── errors │ └── layouts ├── routes/ ├── storage/ └── tests/
We split the header, sidebar, footer and etc into few other part and include it in the base file. Base file has been located in /resources/views/layouts/default.blade.php
.
<!DOCTYPE html> <html lang="{{ app()->getLocale() }}"{{ (!empty($htmlAttribute)) ? $htmlAttribute : '' }}> <head> @include('layout.partial.head') </head> <body class="{{ (!empty($bodyClass)) ? $bodyClass : '' }}"> <!-- BEGIN #app --> <div id="app" class="app {{ (!empty($appClass)) ? $appClass : '' }}"> @include('layout.partial.header') @includeWhen(empty($sidebarHide), 'layout.partial.sidebar') @yield('content') @includeWhen(!empty($footer), 'layout.partial.footer') </div> <!-- END #app --> @include('layout.partial.scroll-top-btn') @include('layout.partial.scripts') </body> </html>
Below is the list of supported variable / setting in view file.
Variable | Usage |
---|---|
@extends('layout.default', ['htmlAttribute' => '']) |
Set the attribute for html tag |
@extends('layout.default', ['bodyClass' => '']) |
Set the css class for body tag |
@extends('layout.default', ['appClass' => '']) |
Set the app class for div#app tag |
@extends('layout.default', ['sidebarHide' => true]) |
Flag to include / exclude sidebar in your page |
@extends('layout.default', ['footer' => true]) |
Flag to include / exclude footer in your page |
Using laravel stacks to add css / js by page level.
// example for how to add page level css @push('css') <link href="/assets/plugins/photoswipe/dist/photoswipe.css" rel="stylesheet" /> ... @endpush // example for how to add page level js @push('scripts') <script src="/assets/plugins/photoswipe/dist/photoswipe-ui-default.min.js"></script> ... @endpush
All the css files used in Studio Larvel has been compiled into one single files app.min.css
by laravel mix. You may change the color scheme from /resources/scss/_variables.scss
.
List of plugins in app.min.css
:
This theme compiles 7 javascript library into one single file app.min.js
by laravel mix.
List of plugins in app.min.js
:
Sidebar minified:
<div id="app" class="app app-sidebar-minified"> ... </div>
Full height:
<div id="app" class="app app-content-full-height"> ... <div id="content" class="app-content" data-scrollbar="true" data-height="100%" data-skip-mobile="true"> ... </div> </div>
Full width:
<div id="app" class="app app-content-full-width"> ... </div>
Fixed footer:
<div id="app" class="app app-footer-fixed"> ... <div id="footer" class="app-footer"> © 2020 seanTheme All Right Reserved </div> </div>
Boxed Layout
<body class="app-with-bg"> <div id="app" class="app app-boxed-layout"> ... </div> </body>
I've used the following images, icons or other files as listed.
jQuery Plugins
Photos
Icons