Laravel开发-laravel-inspinia

  • M4_571886
    了解作者
  • 1.6MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 14:37
    上传日期
Laravel开发-laravel-inspinia 用于集成inspinia模板的Laravel包和此包是Laravel混合友好型。
Laravel开发-laravel-inspinia .zip
内容介绍
[Origin Project](https://wrapbootstrap.com/theme/inspinia-responsive-admin-theme-WB0R5L90S) 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](https://wrapbootstrap.com/user/WebAppLayers) 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 ```bash 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``` ```php 'providers' => [ ... Atnic\Inspinia\Providers\AppServiceProvider::class, ... ] ``` And then run, ```bash php artisan make:inspinia ``` Let's see what we've install. First, make sure that you already ran ```php artisan migrate``` command, then do ```bash php artisan serve ``` Viola! You've running a Laravel site using Inspinia. For more information on command ```bash 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``` ```blade @section('sidebar-menu') <ul class="nav metismenu" id="side-menu" style="padding-left:0px;"> <li class="active"> <a href="{{ route('home') }}" rel='nofollow' onclick='return false;'><i class="fa fa-home"></i> <span class="nav-label">Home</span></a> </li> </ul> @endsection ``` To extends breadcrumbs add this ```blade @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](https://github.com/spatie/laravel-menu) or [lavary/laravel-menu](https://github.com/lavary/laravel-menu), and [davejamesmiller/laravel-breadcrumbs](https://github.com/davejamesmiller/laravel-breadcrumbs). Any new created page should extends this view. ```blade @extends('layouts.app') // Your blade here ``` # Configuration and Views Customization ## Config To publish this package config to your app config run ```bash 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 ```bash php artisan vendor:publish --provider="Atnic\Inspinia\Providers\AppServiceProvider" --tag="views" ``` # Next Step First of all, you should understand how to use [Laravel Mix](https://laravel.com/docs/mix). Inspinia need some package on npm. First you need to run ```bash npm install ``` Install Inspinia needed package from npm ```bash 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 ```bash npm run development ``` or use ```production``` minimize output ```bash 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
      关于Laravel Laravel是一个具有表达力,优雅语法的Web应用程序框架。 我们认为,发展必须是一种令人愉快的,富有创造力的经历,才能真正实现。 Laravel减轻了许多Web项目中使用的常见任务,从而减轻了开发过程中的...
    • Laravel
      关于Laravel Laravel是一个具有表达力,优雅语法的Web应用程序框架。 我们认为,发展必须是一种令人愉悦的创造力,才能真正实现。 Laravel通过减轻许多Web项目中使用的常见任务来减轻开发工作的痛苦,例如: 。 。...
    • Laravel
      Laravel
    • laravel
      关于Laravel Laravel是一个Web应用程序框架,具有表达力强,优雅的语法。 我们认为,发展必须是一种令人愉快的,富有创造力的经历,才能真正实现。 Laravel减轻了许多Web项目中使用的常见任务,从而减轻了开发过程中...
    • Laravel
      Laravel
    • laravel
      关于Laravel Laravel是一个具有表达力,优雅语法的Web应用程序框架。 我们认为,发展必须是一种令人愉快的,富有创造力的经历,才能真正实现。 Laravel减轻了许多Web项目中使用的常见任务,从而减轻了开发过程中的...
    • laravel
      关于Laravel Laravel是一个具有表达力,优雅语法的Web应用程序框架。 我们认为,发展必须是一种令人愉快的,富有创造力的经历,才能真正实现。 Laravel减轻了许多Web项目中使用的常见任务,从而减轻了开发过程中的...
    • Laravel
      Laravel
    • laravel
      laravel
    • Laravel
      Laravel