PHPackages                             milose/laravel-foundation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. milose/laravel-foundation

ActiveLaravel-plugin[Templating &amp; Views](/categories/templating)

milose/laravel-foundation
=========================

Override Laravel Auth/Pagination views using Zurb Foundation instead of Twitter Bootstrap.

v1.1.0(8y ago)049MITHTMLPHP ^5.6|^7.0

Since Oct 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/milose/laravel-foundation)[ Packagist](https://packagist.org/packages/milose/laravel-foundation)[ Docs](https://github.com/milose/laravel-foundation)[ RSS](/packages/milose-laravel-foundation/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel Foundation package
==========================

[](#laravel-foundation-package)

UOverride Laravel Auth/Pagination views using Zurb Foundation instead of Twitter Bootstrap.

1. Installation
---------------

[](#1-installation)

To install this package run

```
composer require milose/laravel-foundation
```

**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:

```
Milose\LaravelFoundation\LaravelFoundationServiceProvider::class,
```

2. Using the views
------------------

[](#2-using-the-views)

### Auth scafolding

[](#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:

```
use \Milose\LaravelFoundation\Auth\AuthenticatesUsers;
```

Instead of:

```
use AuthenticatesUsers;
```

Do this for all files.

### Pagination

[](#pagination)

In your blade files you can `paginate` as usual, by adding:

```
{{ $users->links('lf::pagination.default') }}
```

Or if you're using `simplePaginate` then add:

```
{{ $users->links('lf::pagination.simple') }}
```

3. Customizing the views
------------------------

[](#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

```
php artisan vendor:publish --tag=lf
```

After this, in `resources/views/vendor/laravelFoundation` you will find Blade templates for both authentication and pagination.

4. Adding Zurb Foundation to your project
-----------------------------------------

[](#4-adding-zurb-foundation-to-your-project)

Import npm package and copy settings and utils so you can customize Foundation:

```
yarn add foundation-sites motion-ui --dev
mkdir resources/assets/sass/foundation/
cp node_modules/foundation-sites/scss/settings/_settings.scss resources/assets/sass/foundation/
cp -R node_modules/foundation-sites/scss/util/ resources/assets/sass/foundation/util/
```

### SCSS

[](#scss)

In your `resources/assets/sass/app.scss` file remove:

```
// Bootstrap
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
```

And add:

```
// Foundation
@import 'node_modules/foundation-sites/scss/foundation';
@import "foundation/settings";
@include foundation-everything; //or @include only the components you need

// Motion-Ui
@import 'node_modules/motion-ui/motion-ui'
```

### JavaScript

[](#javascript)

In your `resources/assets/js/bootstrap.js` file remove:

```
require('bootstrap-sass');
```

And add:

```
require('motion-ui')
require('what-input')
require('foundation-sites') // or individual components
$(document).ready(function() {
    $(document).foundation()
})
```

Then run `gulp` to recompile the assets.

\##TODO

- Test

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~379 days

Total

2

Last Release

3114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/226aa91c6d90e877d2d471ab980c8acbc6f77f3408a343ae5b7006a7e7b8e861?d=identicon)[milose](/maintainers/milose)

---

Top Contributors

[![milose](https://avatars.githubusercontent.com/u/2998029?v=4)](https://github.com/milose "milose (44 commits)")

---

Tags

foundationfoundation-sitesfoundation6laravellaravel-foundationzurb-foundationLaravel FoundationMiloseLaravelFoundation

### Embed Badge

![Health badge](/badges/milose-laravel-foundation/health.svg)

```
[![Health](https://phpackages.com/badges/milose-laravel-foundation/health.svg)](https://phpackages.com/packages/milose-laravel-foundation)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
