Download the PHP package milose/laravel-foundation without Composer
On this page you can find all versions of the php package milose/laravel-foundation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download milose/laravel-foundation
More information about milose/laravel-foundation
Files in milose/laravel-foundation
Package laravel-foundation
Short Description Override Laravel Auth/Pagination views using Zurb Foundation instead of Twitter Bootstrap.
License MIT
Homepage https://github.com/milose/laravel-foundation
Informations about the package laravel-foundation
Laravel Foundation package
UOverride Laravel Auth/Pagination views using Zurb Foundation instead of Twitter Bootstrap.
1. Installation
To install this package run
If you are using Laravel version >= 5.5
you can skip the next step.
Add the service provider to your config/app.php
file by finding providers
key, and adding this to the end of the list:
2. Using the views
Auth scafolding
In order for Laravel to use the custom views for Authentication, we must import this package traits to the appropriate controllers. These traits override the original methods with updated view names.
Open all of the files in app/Http/Controllers/Auth
, and before every trait add \Milose\LaravelFoundation\Auth\
to override the default view. So, for example, Login controller trait inside the class sould look like:
Instead of:
Do this for all files.
Pagination
In your blade files you can paginate
as usual, by adding:
Or if you're using simplePaginate
then add:
3. Customizing the views
If you want to change how the views look, you need to publish the them to your resources/views/vendor
directory by running
After this, in resources/views/vendor/laravelFoundation
you will find Blade templates for both authentication and pagination.
4. Adding Zurb Foundation to your project
Import npm package and copy settings and utils so you can customize Foundation:
SCSS
In your resources/assets/sass/app.scss
file remove:
And add:
JavaScript
In your resources/assets/js/bootstrap.js
file remove:
And add:
Then run gulp
to recompile the assets.
TODO
- Test