Giter Site home page Giter Site logo

laravel-inspinia's Introduction

Origin Project

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!

laravel-inspinia's People

Contributors

frdteknikelektro avatar guszandy avatar mortenscheel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.