atnic / laravel-inspinia
Laravel Package for integrating Inspinia template and this package is Laravel Mix friendly.
Installs: 3 761
Dependents: 1
Suggesters: 0
Security: 0
Stars: 16
Watchers: 10
Forks: 15
Open Issues: 26
Language:HTML
Type:package
Requires
- php: >=5.6.4
- laravel/framework: ^5.4
Requires (Dev)
- fzaninotto/faker: ~1.4
- laravel/tinker: ~1.0
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
- dev-develop
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
- dev-dependabot/npm_and_yarn/json5-and-laravel-mix-2.2.3
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/moment-2.29.4
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/composer/erusev/parsedown-1.7.4
- dev-dependabot/composer/symfony/http-kernel-3.4.49
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/composer/laravel/framework-5.8.38
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/axios-0.21.1
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/jquery-3.5.0
- dev-dependabot/composer/symfony/http-foundation-3.4.36
- dev-master
This package is auto-updated.
Last update: 2024-10-30 01:53:42 UTC
README
This is only a demo!
If you're only going to study these source code, be free to view them.
If you want to deploy or use it (especially on commercial), Please purchase $36 for it on {wrap}Bootstrap.
All rights are reserved by the owner of this project.
Laravel Inspinia
Laravel Package for integrating Inspinia template and this package is Laravel Mix friendly. Currently this package can be integrated easily only on fresh installation.
Installation
composer require atnic/laravel-inspinia
If you are using Laravel 5.5 above skip this step, but if aren't then add this line on config/app.php
, on providers
'providers' => [ ... Atnic\Inspinia\Providers\AppServiceProvider::class, ... ]
And then run,
php artisan make:inspinia
Let's see what we've install. First, make sure that you already ran php artisan migrate
command, then do
php artisan serve
Viola! You've running a Laravel site using Inspinia.
For more information on command
php artisan make:inspinia --help
Usage
This package provides view for auth and app. Take a look at resources/views/layouts/app.blade.php
.
In this file you can extends global section like user name, avatar, breadcrumbs, and menu.
To extends menu add this in app.blade.php
@section('sidebar-menu') <ul class="nav metismenu" id="side-menu" style="padding-left:0px;"> <li class="active"> <a href="{{ route('home') }}"><i class="fa fa-home"></i> <span class="nav-label">Home</span></a> </li> </ul> @endsection
To extends breadcrumbs add this
@section('breadcrumbs') @include('inspinia::layouts.main-panel.breadcrumbs', [ 'breadcrumbs' => [ (object) [ 'title' => 'Home', 'url' => route('home') ] ] ]) @endsection
This package give you free of choice to use any Laravel Package for Menu and Breadcrumb. We recommend spatie/laravel-menu or lavary/laravel-menu, and davejamesmiller/laravel-breadcrumbs.
Any new created page should extends this view.
@extends('layouts.app') // Your blade here
Configuration and Views Customization
Config
To publish this package config to your app config run
php artisan vendor:publish --provider="Atnic\Inspinia\Providers\AppServiceProvider" --tag="config"
Views
To publish this package views so you can customize on your own run
php artisan vendor:publish --provider="Atnic\Inspinia\Providers\AppServiceProvider" --tag="views"
Next Step
First of all, you should understand how to use Laravel Mix.
Inspinia need some package on npm. First you need to run
npm install
Install Inspinia needed package from npm
npm install --save-dev animate.css bootstrap-sass bootstrap-datepicker clockpicker font-awesome icheck jquery-slimscroll metismenu moment pace-js select2 select2-bootstrap-theme toastr
Run Laravel Mix command
npm run development
or use production
minimize output
npm run production
Then have a good look on these files
webpack.mix.js
resources/assets/js/inspinia.js
resources/assets/js/auth.js
resources/assets/sass/inspinia.scss
resources/assets/sass/auth.scss
Happy experimenting!