Download the PHP package atomescrochus/laravel-bulma-starter without Composer
On this page you can find all versions of the php package atomescrochus/laravel-bulma-starter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atomescrochus/laravel-bulma-starter
More information about atomescrochus/laravel-bulma-starter
Files in atomescrochus/laravel-bulma-starter
Package laravel-bulma-starter
Short Description A quick replacement for Laravel's basic templates, built with Bulma
License MIT
Homepage https://github.com/atomescrochus/laravel-bulma-starter
Informations about the package laravel-bulma-starter
Bulma template starter kit for Laravel
A quick replacement for Laravel's basic templates, built with Bulma. It requires Laravel >= 5.4.
Install
Via Composer
Then you have to install the package' service provider, unless you are running Laravel >=5.5 (it'll use package auto-discovery). :
Then, follow theses simple steps:
- Add
"bulma": "^0.3.1"
to yourpackage.json
file; - Run
npm update
- (If you don't want to use Bootstrap anymore) Remove, or comment out the reference to
sass_bootstrap
andvariables
in yourresources/assets/sass/app.scss
file and fromresources/assets/js/bootstrap.js
. - Add
@import "node_modules/bulma/bulma";
to theresources/assets/sass/app.scss
file - Run
npm run [your-choice-of-env]
(the template files max uses of themix()
helper)
Usage
Publish the package's view files
If you want to take a peak at the code, you can publish the package's files using:
You'll find them in resources/views/vendor/laravel-bulma-starter
.
Replace Laravel default files
If I wanted to replace the welcome.blade.php
to the one provided in the package, I would just open the one provided with Laravel, and replace its content by @include('laravel-bulma-starter::welcome')
. For the auth.login
view, I'd use @include('laravel-bulma-starter::auth.login')
, and so on.
Using the package default template by yourself
Just create a new blade file and extend it with @extends('laravel-bulma-starter::layouts.bulma')
.
You can pass content to this layout file using
You can add elements to the top right menu as such
If you need to add other scripts, or stylesheets, you can use some additionnal stacks (scripts-before
, scripts-after
, styles-before
and styles-after
) like so
Error display component
The only real difference between this packages' views and Laravel's default, beside using Bulma, is that I use a custom component for errors. It can be used as such:
Of course, you are in now way forced to use the components outisde this package's views, but I find it really useful so give it a try!
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- [Jean-Philippe Murray][https://github.com/jpmurray]
- All Contributors
License
The MIT License (MIT). Please see License File for more information.