Package Data | |
---|---|
Maintainer Username: | nicholopolus |
Maintainer Contact: | apps.inundated@gmail.com (Nick) |
Package Create Date: | 2016-07-21 |
Package Last Update: | 2016-07-25 |
Language: | CSS |
License: | MIT |
Last Refreshed: | 2024-12-20 03:01:46 |
Package Statistics | |
---|---|
Total Downloads: | 176 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.
"qntm/laravel-materialize-sass": "dev-master"
Qntm\LaravelMaterializeSass\MaterializeSassServiceProvider::class,
'MaterializeSass' => Qntm\LaravelMaterializeSass\MaterializeSassBuilder::class,
$ php artisan vendor:publish --tag=materializesass --force
You can re-publish the assets automatically when composer updated the package:
"php artisan vendor:publish --tag=materializesass --force"
"post-update-cmd": [
"php artisan optimize",
"php artisan vendor:publish --tag=materializesass --force"
],
To add in the materialize JS and Jquery, place this just before the closing of the head tag.
...
{!! 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