定制 qntm/laravel-materialize-sass 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

qntm/laravel-materialize-sass

Composer 安装命令:

composer require qntm/laravel-materialize-sass

包简介

Add Materialize CSS Framework Source to Laravel

README 文档

README

This plugin installs the Materialize CSS source into the resources/assets/sass/materialize folder of your assets. This plugin also places the javascript in public/js/materialize/ directory.

Installation

  • Require this package in your composer.json and run composer update.
    "qntm/laravel-materialize-sass": "dev-master"
  • After updating composer, add ServiceProvider to the providers array in config/app.php
    Qntm\LaravelMaterializeSass\MaterializeSassServiceProvider::class,
  • Add Facade to the aliases array in config/app.php
	'MaterializeSass' => Qntm\LaravelMaterializeSass\MaterializeSassBuilder::class,
  • Then publish the package's assets to public folder:
    $ php artisan vendor:publish --tag=materializesass --force

Updates

You can re-publish the assets automatically when composer updated the package:

  • In your composer.json, go to scripts > post-update-cmd section, add the next line:
    "php artisan vendor:publish --tag=materializesass --force"
  • The code will look similar to:
    "post-update-cmd": [
        "php artisan optimize",
        "php artisan vendor:publish --tag=materializesass --force"
    ],

Usage

To add in the materialize JS and Jquery, place this just before the closing of the head tag.

  • includeMaterialize()
    ...
    {!! MaterializeSass::includeMaterialize($minified) !!}
    </head>

Where $minified = true the minified version of js will be added, otherwise the full version will be added. Default behaviour if it is not passed in is $minified = true

统计信息

  • 总下载量: 178
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固