schir1964

schir1964

Member Since 3 Years Ago

Experience Points 7,840
Experience
Level
Lessons Completed 67
Lessons
Completed
Best Reply Awards 2
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

29 Nov
2 years ago

schir1964 left a reply on PHP Regular Expression

I think you are over thinking it. The result you want is to replace the string that follows 'phone number' and is before '. My' sections of the text.

So how about the following:

preg_replace('/phone number .*\. My/', 'phone number [blocked]. My', $msg);
22 May
2 years ago

schir1964 left a reply on Foundation 6 And Foundation Icons 3 Integration

Updated the Sass: /resources/assets/sass/app.scss to include the @import 'util/util'; command.

10 May
2 years ago

schir1964 left a reply on Large Database, Slow Query Suggestions?

You could create a Database View containing the mutated values and then have model pull from that table. Should be able to search/sort on those fields then. Just a thought.

02 May
2 years ago

schir1964 left a reply on 1 Or 2 Tables With 5.2 Guards/ACL

I went with Roles and Permissions tables. I needed the flexibility. There more layers than just users and admins. Theres various levels of administration that I needed to set authorization for.

For example: I have a developer role that allows for creating sales representative type adminstrators. I have a sales representatives role that allows for creating user accounts. I have a billing role that allows access to billing user accounts but little else.

14 Apr
2 years ago

schir1964 left a reply on How Increase Uploading File Size In Laravel.

Check you php.ini file. There's another configuration setting that can affect the upload but the details escape me now.

13 Apr
2 years ago

schir1964 left a reply on Multiple OrderBy On Query

I discovered this on one of Jeffrey's videos that shows how to handle this outside of the model.

$model = (new Model)->newQuery();

foreach ($request->get('sort_criteria') as $column => $direction) {
    $model->orderBy($column, $direction);
}

$results = $model->paginate(10);
11 Apr
2 years ago

schir1964 left a reply on Multiple OrderBy On Query

After reading some more of the Eloquent documentation I discovered that a Dynamic Scope is normally used for this kind of thing. I created a dynamic scope to handle adding the Sort criteria one by one using the orderBy command. Basically it serves as a custom Query Builder command.

10 Apr
2 years ago

schir1964 left a reply on Let Admin "take Over" User Feature

One technique I've used (not for Laravel specifically) is to have a flag on the Users account that allows the vendor to login to the users account. This flag is controlled by the user. They can toggle access by the vendor on and off within their account. Then all you need is a vendor hash for each account stored in the database somewhere (or even have it generated on fly if needed) that is checked during the login process. The vendor's support screen only shows a login button for those accounts that have allowed vendor access. This has worked well with the particular web application I was supporting.

Note: This doesn't help if the issue is that that the user can't get logged into their account to start with or unable to move around within their account.

schir1964 started a new conversation Multiple OrderBy On Query

Is there a way to set multiple orderBy criteria when querying from a model without chaining the commands.

Chaining (Works)

$result = $model->orderBy('name', 'asc')->orderBy('id', 'asc')->paginate(10);

No Chaining (Does not work)

$model->orderBy('name', 'asc');
$model->orderBy('id', 'asc');
$result = $model->paginate(10);

I'm receiving the sort criteria from table headers so chaining becomes difficult since the sort criteria changes (number of sort fields).

How is this handled generally?

07 Apr
2 years ago

schir1964 left a reply on Composer Update: Script Php Artisan Clear-compiled Handling The Pre-update-cmd Event Returned With An Error

I get this error whenever I try to run composer update and don't have my Web Sever and Database Server up and running.

18 Mar
2 years ago

schir1964 started a new conversation Laravel Website Down? Larave Website Down?

What is going on with www.laravel.com website. It's been down for the last day I think.

15 Mar
2 years ago

schir1964 started a new conversation Foundation 6 Presenter For Paginator

Illuminate\Pagination class works really well but only has Presenters for Bootstrap. I decided to take a crack at making a Presenter for Foundation 6 and amazingly it only took about an hour of actual code changes (a few more for reading and analyzing the code).

Anyway, I copied the following two files to my App directory and renamed them and made the necessary changes for implementation and Foundation 6 styles.

  • laravel/framework/src/Illuminate/Pagination/BootstrapThreePresenter.php
  • laravel/framework/src/Illuminate/Pagination/BootstrapThreeNextPreviousButtonRendererTrait.php

Just save the following two files into your App directory and then in your Blade template you simply pass in the Presenter to your Pagination object (usually instantiated in the controller and passed into the template.

Blade: Passing Presenter Into Pagination Object

{!! $paginationObj->links(new \App\Foundation6Presenter($paginationObj)) !!}

Foundation6Presenter.php

<?php

namespace App;

use Illuminate\Support\HtmlString;
use Illuminate\Contracts\Pagination\Paginator as PaginatorContract;
use Illuminate\Contracts\Pagination\Presenter as PresenterContract;
use Illuminate\Pagination\UrlWindowPresenterTrait;
use Illuminate\Pagination\UrlWindow;

class Foundation6Presenter implements PresenterContract
{
    use Foundation6NextPreviousButtonRendererTrait, UrlWindowPresenterTrait;

    /**
     * The paginator implementation.
     *
     * @var \Illuminate\Contracts\Pagination\Paginator
     */
    protected $paginator;

    /**
     * The URL window data structure.
     *
     * @var array
     */
    protected $window;

    /**
     * Create a new Bootstrap presenter instance.
     *
     * @param  \Illuminate\Contracts\Pagination\Paginator  $paginator
     * @param  \Illuminate\Pagination\UrlWindow|null  $window
     * @return void
     */
    public function __construct(PaginatorContract $paginator, UrlWindow $window = null)
    {
        $this->paginator = $paginator;
        $this->window = is_null($window) ? UrlWindow::make($paginator) : $window->get();
    }

    /**
     * Determine if the underlying paginator being presented has pages to show.
     *
     * @return bool
     */
    public function hasPages()
    {
        return $this->paginator->hasPages();
    }

    /**
     * Convert the URL window into Bootstrap HTML.
     *
     * @return \Illuminate\Support\HtmlString
     */
    public function render()
    {
        if ($this->hasPages()) {
            return new HtmlString(sprintf(
                '<ul class="pagination text-center" role="navigation" aria-label="Pagination">%s %s %s</ul>',
                $this->getPreviousButton(),
                $this->getLinks(),
                $this->getNextButton()
            ));
        }

        return '';
    }

    /**
     * Get HTML wrapper for an available page link.
     *
     * @param  string  $url
     * @param  int  $page
     * @param  string|null  $rel
     * @return string
     */
    protected function getAvailablePageWrapper($url, $page, $rel = null)
    {
        $rel = is_null($rel) ? '' : ' rel="'.$rel.'"';

        return '<li><a href="'.htmlentities($url).'"'.$rel.' aria-label="Page '.$page.'">'.$page.'</a></li>';
    }

    /**
     * Get HTML wrapper for disabled text.
     *
     * @param  string  $text
     * @return string
     */
    protected function getDisabledTextWrapper($text)
    {
        return '<li class="disabled">'.$text.'</li>';
    }

    /**
     * Get HTML wrapper for active text.
     *
     * @param  string  $text
     * @return string
     */
    protected function getActivePageWrapper($text)
    {
        return '<li class="current"><span class="show-for-sr">You&#34;re on page </span>'.$text.'</li>';
    }

    /**
     * Get a pagination "dot" element.
     *
     * @return string
     */
    protected function getDots()
    {
        return '<li class="ellipsis"></li>';
    }

    /**
     * Get the current page from the paginator.
     *
     * @return int
     */
    protected function currentPage()
    {
        return $this->paginator->currentPage();
    }

    /**
     * Get the last page from the paginator.
     *
     * @return int
     */
    protected function lastPage()
    {
        return $this->paginator->lastPage();
    }
}

Foundation6NextPreviousButtonRendererTrait.php

<?php

namespace App;

trait Foundation6NextPreviousButtonRendererTrait
{
    /**
     * Get the previous page pagination element.
     *
     * @param  string  $text
     * @return string
     */
    public function getPreviousButton($text = '&laquo;')
    {
        // If the current page is less than or equal to one, it means we can't go any
        // further back in the pages, so we will render a disabled previous button
        // when that is the case. Otherwise, we will give it an active "status".
        if ($this->paginator->currentPage() <= 1) {
            return '<li class="pagination-previous disabled">Previous</li>';
        }

        $url = $this->paginator->url($this->paginator->currentPage() - 1);

        return '<li class="pagination-previous"><a href="'.htmlentities($url).'" aria-label="Previous page">Previous</a></li>';
    }

    /**
     * Get the next page pagination element.
     *
     * @param  string  $text
     * @return string
     */
    public function getNextButton($text = '&raquo;')
    {
        // If the current page is greater than or equal to the last page, it means we
        // can't go any further into the pages, as we're already on this last page
        // that is available, so we will make it the "next" link style disabled.
        if (! $this->paginator->hasMorePages()) {
            return '<li class="pagination-next disabled">Next</li>';
        }

        $url = $this->paginator->url($this->paginator->currentPage() + 1);

        return '<li class="pagination-next"><a href="'.htmlentities($url).'" aria-label="Next page">Next</a></li>';
    }
}
23 Feb
2 years ago

schir1964 left a reply on Uploads To Cloud

I would like to do it with PHP but If I use their php lib I believe it is the same thing i.e. it would save image in /tmp and then I would have to move it to Transloadit and then from there into S3 or rackspace.

Actually, it doesn't. I've implemented this service for a project and the files are never stored on my server (even temporarily). What happens is the jQuery code connects to thier servers via an API and the file uploads onto thier servers. Once that is done the jQuery then update the form with the file's reference information on transloadit and then submits the form on your website. If you want the direct link to where this is explained in their documentation and can provide it if needed.

schir1964 left a reply on Unexplainded TokenMismatchException

You can also get this when the session times out and you submit a form that has been sitting there. There is another thread that talks about this.

schir1964 left a reply on Uploads To Cloud

Is it possible to have the image file be originally uploaded to cloud server instead of the /tmp location on local server?

It is possible but it needs to be setup external from your own code. The Transloadit service is an example of an external service that your code can use to handle the uploading of files and storing them on cloud storage (such as Amazon's S3).

17 Feb
2 years ago

schir1964 left a reply on How To Solve Logical Problem With Blade

@if ($article->from)  >  (Carbon::now()->addDays($article->days))
    @if (( Carbon::now()->addDays($article->days) > $win->start) || ($article->from > > $win-> start))
        <div>get VOUCHER</div>
    @else
        <div>ACTIVE</div>
    @endif
@endif
16 Feb
2 years ago

schir1964 left a reply on A Div Dynamically From A Controller

Minor alteration to keep as much of the html code out of the controller.

Controller

faName = 'home';

View

<i class="fa-fw fa fa-{{ $faName }}"></i>

Just a thought.

15 Feb
2 years ago

schir1964 left a reply on Pagination Page # For Specific Record By ID?

You could create a method on the Company model that would return the proper paginated page number. This method would create a sorted list containing the sort column and the id column. Then transform the array into a paginated array. Then the method could determine which page the id would be shown and return that page number/index.

Then call this method whenever you need to know the page number.

This routine would add a lot of overhead your code if it has to be called much.

14 Feb
2 years ago

schir1964 left a reply on Auth Middleware On Post Route

You'll probably want to use use the reflash() method to pass the information on to the next request. Search for reflash in the documentation.

schir1964 left a reply on User Registration Email Confirmation Issue

Another note: I used this same tutorial to get my email confirmation working with my project. I had to massage certain parts of the code since that tutorial is based on Laravel 4 and I'm using Laravel 5.2 version. There's some significant differences in certain areas as to how things get done. I did have to pause and research each of these areas to resolve the differences.

schir1964 left a reply on Check If Cookie Exists In Create() Function

Isn't there a Cookie::has('affiliate_id') method that checks for the existence?

schir1964 left a reply on Handling Errors For Register And Login Forms On The Same Page

Check the section called 'Named Error Bags' in the documentation under Validation.

Note: The names of the input fields can be the same however if you are using ids with the input fields they need to be unique.

11 Feb
2 years ago

schir1964 left a reply on Update Part Of The View Using AJAX

If you want to use blade you can just create the HTML in a blade file then return that view as you would normally. This is how a lot of the email is done. The email blade file is just partial HTML file that is used to create the body of the message.

08 Feb
2 years ago

schir1964 left a reply on Foundation 6 And Foundation Icons 3 Integration

Added foundation_custom_settings.scss file to list. Changes in this file should override the default settings of Foundation.

03 Feb
2 years ago

schir1964 left a reply on Cascading Soft Deletes

What is you goal in achieving this?

Are wanting mark all child items as Soft Deleted also? What is the benefit in doing this?

If the child items are being referenced outside of the parent item, then I think it might make more sense to add a method to the model of the child item that returns the soft delete indicator of the parent which can used as needed.

13 Jan
2 years ago

schir1964 left a reply on Foundation 6 And Foundation Icons 3 Integration

Somehow I corrupted my initial post while editing it. My post above adds in the Motion-UI package that is needed for some of the Foundation 6 features.

schir1964 left a reply on Foundation 6 And Foundation Icons 3 Integration

After much fiddling around and comparing to others posts I've finally got Foundation 6 with Foundation Icons 3 integrated into Laravel via Sass and Elixer.

I thought I would share my setup files to save others the grief I went through getting it to work.

It's not pretty and there may be a more elegant way to integrate them and I'll gladly use whatever someone else comes up with. (8^D)

Environment: Windows 7 (x64), XAMPP, Laravel 5.2, Foundation 6, Foundation Icons 3.

Install Gulp/Elixer

Follow the Laravel Elixer instructions for getting Gulp and Elixer installed/setup.

Install Motion-UI

Certain features of Foundation 6 depend on this package being installed.

npm install motion-ui --save-dev

Install Foundation 6

composer require "zurb/foundation" --dev

Download jQuery Core

jQuery - http://jquery.com/

Download into a temporary folder.

Download Foundation Icons 3

Foundation Icons 3 - http://zurb.com/playground/foundation-icon-fonts-3

Extract files into a temporary folder.

Directory Structure Setup

resources
|__fonts
|__js
|  |__foundation
|__sass

public
|__css
|__fonts
|__js

Files

Copy jQuery file:

  • tmpFolder/jquery-2.1.4.js

To:

  • /resources/assets/js

Copy the font files:

  • tmpFolder/foundation-icons/foundation-icons.eot
  • tmpFolder/foundation-icons/foundation-icons.svg
  • tmpFolder/foundation-icons/foundation-icons.ttf
  • tmpFolder/foundation-icons/foundation-icons.woff

To:

  • /resources/assets/fonts

Javascript: /gulpfile.js

elixir(function(mix) {
    mix.sass(
      'app.scss',
      'public/css/foundation.css',
      {
        includePaths: [
            'node_modules/motion-ui/src',
            'vendor/zurb/foundation/scss/'
        ],
        outputStyle: 'expanded'
      }
    );

    mix.copy('node_modules/motion-ui/dist/motion-ui.js', 'resources/assets/js/foundation');
    mix.copy('vendor/zurb/foundation/js/*.js', 'resources/assets/js/foundation');
    mix.scripts(
      [
        'jquery-2.1.4.js',
        'foundation/motion-ui.js',
        'foundation/foundation.core.js',
        'foundation/foundation.abide.js',
        'foundation/foundation.accordion.js',
        'foundation/foundation.accordionMenu.js',
        'foundation/foundation.drilldown.js',
        'foundation/foundation.dropdown.js',
        'foundation/foundation.dropdownMenu.js',
        'foundation/foundation.equalizer.js',
        'foundation/foundation.interchange.js',
        'foundation/foundation.magellan.js',
        'foundation/foundation.offcanvas.js',
        'foundation/foundation.orbit.js',
        'foundation/foundation.responsiveMenu.js',
        'foundation/foundation.responsiveToggle.js',
        'foundation/foundation.reveal.js',
        'foundation/foundation.slider.js',
        'foundation/foundation.sticky.js',
        'foundation/foundation.tabs.js',
        'foundation/foundation.toggler.js',
        'foundation/foundation.tooltip.js',
        'foundation/foundation.util.box.js',
        'foundation/foundation.util.keyboard.js',
        'foundation/foundation.util.mediaQuery.js',
        'foundation/foundation.util.motion.js',
        'foundation/foundation.util.nest.js',
        'foundation/foundation.util.timerAndImageLoader.js',
        'foundation/foundation.util.touch.js',
        'foundation/foundation.util.triggers.js'
      ],
      'public/js/foundation.js'
    );

    mix.copy('resources/assets/fonts/foundation-icons.*', 'public/fonts');

    mix.version(['css/foundation.css', 'js/foundation.js']);

    mix.copy('resources/assets/fonts/foundation-icons.*', 'public/build/fonts');
});

Sass: /resources/assets/sass/app.scss

@import 'motion-ui';
@include motion-ui-transitions;

@import 'foundation';
@include foundation-everything;

@import 'foundation_icons';

Sass: /resources/assets/sass/foundation_icons.scss

@import "foundation_icons_settings";

/* font-face */
@include face;

/* icons */
@include i-class(
  ".#{$classPrefix}address-book:before, .#{$classPrefix}alert:before, .#{$classPrefix}align-center:before, .#{$classPrefix}align-justify:before, .#{$classPrefix}align-left:before, .#{$classPrefix}align-right:before, .#{$classPrefix}anchor:before, .#{$classPrefix}annotate:before, .#{$classPrefix}archive:before, .#{$classPrefix}arrow-down:before, .#{$classPrefix}arrow-left:before, .#{$classPrefix}arrow-right:before, .#{$classPrefix}arrow-up:before, .#{$classPrefix}arrows-compress:before, .#{$classPrefix}arrows-expand:before, .#{$classPrefix}arrows-in:before, .#{$classPrefix}arrows-out:before, .#{$classPrefix}asl:before, .#{$classPrefix}asterisk:before, .#{$classPrefix}at-sign:before, .#{$classPrefix}background-color:before, .#{$classPrefix}battery-empty:before, .#{$classPrefix}battery-full:before, .#{$classPrefix}battery-half:before, .#{$classPrefix}bitcoin-circle:before, .#{$classPrefix}bitcoin:before, .#{$classPrefix}blind:before, .#{$classPrefix}bluetooth:before, .#{$classPrefix}bold:before, .#{$classPrefix}book-bookmark:before, .#{$classPrefix}book:before, .#{$classPrefix}bookmark:before, .#{$classPrefix}braille:before, .#{$classPrefix}burst-new:before, .#{$classPrefix}burst-sale:before, .#{$classPrefix}burst:before, .#{$classPrefix}calendar:before, .#{$classPrefix}camera:before, .#{$classPrefix}check:before, .#{$classPrefix}checkbox:before, .#{$classPrefix}clipboard-notes:before, .#{$classPrefix}clipboard-pencil:before, .#{$classPrefix}clipboard:before, .#{$classPrefix}clock:before, .#{$classPrefix}closed-caption:before, .#{$classPrefix}cloud:before, .#{$classPrefix}comment-minus:before, .#{$classPrefix}comment-quotes:before, .#{$classPrefix}comment-video:before, .#{$classPrefix}comment:before, .#{$classPrefix}comments:before, .#{$classPrefix}compass:before, .#{$classPrefix}contrast:before, .#{$classPrefix}credit-card:before, .#{$classPrefix}crop:before, .#{$classPrefix}crown:before, .#{$classPrefix}css3:before, .#{$classPrefix}database:before, .#{$classPrefix}die-five:before, .#{$classPrefix}die-four:before, .#{$classPrefix}die-one:before, .#{$classPrefix}die-six:before, .#{$classPrefix}die-three:before, .#{$classPrefix}die-two:before, .#{$classPrefix}dislike:before, .#{$classPrefix}dollar-bill:before, .#{$classPrefix}dollar:before, .#{$classPrefix}download:before, .#{$classPrefix}eject:before, .#{$classPrefix}elevator:before, .#{$classPrefix}euro:before, .#{$classPrefix}eye:before, .#{$classPrefix}fast-forward:before, .#{$classPrefix}female-symbol:before, .#{$classPrefix}female:before, .#{$classPrefix}filter:before, .#{$classPrefix}first-aid:before, .#{$classPrefix}flag:before, .#{$classPrefix}folder-add:before, .#{$classPrefix}folder-lock:before, .#{$classPrefix}folder:before, .#{$classPrefix}foot:before, .#{$classPrefix}foundation:before, .#{$classPrefix}graph-bar:before, .#{$classPrefix}graph-horizontal:before, .#{$classPrefix}graph-pie:before, .#{$classPrefix}graph-trend:before, .#{$classPrefix}guide-dog:before, .#{$classPrefix}hearing-aid:before, .#{$classPrefix}heart:before, .#{$classPrefix}home:before, .#{$classPrefix}html5:before, .#{$classPrefix}indent-less:before, .#{$classPrefix}indent-more:before, .#{$classPrefix}info:before, .#{$classPrefix}italic:before, .#{$classPrefix}key:before, .#{$classPrefix}laptop:before, .#{$classPrefix}layout:before, .#{$classPrefix}lightbulb:before, .#{$classPrefix}like:before, .#{$classPrefix}link:before, .#{$classPrefix}list-bullet:before, .#{$classPrefix}list-number:before, .#{$classPrefix}list-thumbnails:before, .#{$classPrefix}list:before, .#{$classPrefix}lock:before, .#{$classPrefix}loop:before, .#{$classPrefix}magnifying-glass:before, .#{$classPrefix}mail:before, .#{$classPrefix}male-female:before, .#{$classPrefix}male-symbol:before, .#{$classPrefix}male:before, .#{$classPrefix}map:before, .#{$classPrefix}marker:before, .#{$classPrefix}megaphone:before, .#{$classPrefix}microphone:before, .#{$classPrefix}minus-circle:before, .#{$classPrefix}minus:before, .#{$classPrefix}mobile-signal:before, .#{$classPrefix}mobile:before, .#{$classPrefix}monitor:before, .#{$classPrefix}mountains:before, .#{$classPrefix}music:before, .#{$classPrefix}next:before, .#{$classPrefix}no-dogs:before, .#{$classPrefix}no-smoking:before, .#{$classPrefix}page-add:before, .#{$classPrefix}page-copy:before, .#{$classPrefix}page-csv:before, .#{$classPrefix}page-delete:before, .#{$classPrefix}page-doc:before, .#{$classPrefix}page-edit:before, .#{$classPrefix}page-export-csv:before, .#{$classPrefix}page-export-doc:before, .#{$classPrefix}page-export-pdf:before, .#{$classPrefix}page-export:before, .#{$classPrefix}page-filled:before, .#{$classPrefix}page-multiple:before, .#{$classPrefix}page-pdf:before, .#{$classPrefix}page-remove:before, .#{$classPrefix}page-search:before, .#{$classPrefix}page:before, .#{$classPrefix}paint-bucket:before, .#{$classPrefix}paperclip:before, .#{$classPrefix}pause:before, .#{$classPrefix}paw:before, .#{$classPrefix}paypal:before, .#{$classPrefix}pencil:before, .#{$classPrefix}photo:before, .#{$classPrefix}play-circle:before, .#{$classPrefix}play-video:before, .#{$classPrefix}play:before, .#{$classPrefix}plus:before, .#{$classPrefix}pound:before, .#{$classPrefix}power:before, .#{$classPrefix}previous:before, .#{$classPrefix}price-tag:before, .#{$classPrefix}pricetag-multiple:before, .#{$classPrefix}print:before, .#{$classPrefix}prohibited:before, .#{$classPrefix}projection-screen:before, .#{$classPrefix}puzzle:before, .#{$classPrefix}quote:before, .#{$classPrefix}record:before, .#{$classPrefix}refresh:before, .#{$classPrefix}results-demographics:before, .#{$classPrefix}results:before, .#{$classPrefix}rewind-ten:before, .#{$classPrefix}rewind:before, .#{$classPrefix}rss:before, .#{$classPrefix}safety-cone:before, .#{$classPrefix}save:before, .#{$classPrefix}share:before, .#{$classPrefix}sheriff-badge:before, .#{$classPrefix}shield:before, .#{$classPrefix}shopping-bag:before, .#{$classPrefix}shopping-cart:before, .#{$classPrefix}shuffle:before, .#{$classPrefix}skull:before, .#{$classPrefix}social-500px:before, .#{$classPrefix}social-adobe:before, .#{$classPrefix}social-amazon:before, .#{$classPrefix}social-android:before, .#{$classPrefix}social-apple:before, .#{$classPrefix}social-behance:before, .#{$classPrefix}social-bing:before, .#{$classPrefix}social-blogger:before, .#{$classPrefix}social-delicious:before, .#{$classPrefix}social-designer-news:before, .#{$classPrefix}social-deviant-art:before, .#{$classPrefix}social-digg:before, .#{$classPrefix}social-dribbble:before, .#{$classPrefix}social-drive:before, .#{$classPrefix}social-dropbox:before, .#{$classPrefix}social-evernote:before, .#{$classPrefix}social-facebook:before, .#{$classPrefix}social-flickr:before, .#{$classPrefix}social-forrst:before, .#{$classPrefix}social-foursquare:before, .#{$classPrefix}social-game-center:before, .#{$classPrefix}social-github:before, .#{$classPrefix}social-google-plus:before, .#{$classPrefix}social-hacker-news:before, .#{$classPrefix}social-hi5:before, .#{$classPrefix}social-instagram:before, .#{$classPrefix}social-joomla:before, .#{$classPrefix}social-lastfm:before, .#{$classPrefix}social-linkedin:before, .#{$classPrefix}social-medium:before, .#{$classPrefix}social-myspace:before, .#{$classPrefix}social-orkut:before, .#{$classPrefix}social-path:before, .#{$classPrefix}social-picasa:before, .#{$classPrefix}social-pinterest:before, .#{$classPrefix}social-rdio:before, .#{$classPrefix}social-reddit:before, .#{$classPrefix}social-skillshare:before, .#{$classPrefix}social-skype:before, .#{$classPrefix}social-smashing-mag:before, .#{$classPrefix}social-snapchat:before, .#{$classPrefix}social-spotify:before, .#{$classPrefix}social-squidoo:before, .#{$classPrefix}social-stack-overflow:before, .#{$classPrefix}social-steam:before, .#{$classPrefix}social-stumbleupon:before, .#{$classPrefix}social-treehouse:before, .#{$classPrefix}social-tumblr:before, .#{$classPrefix}social-twitter:before, .#{$classPrefix}social-vimeo:before, .#{$classPrefix}social-windows:before, .#{$classPrefix}social-xbox:before, .#{$classPrefix}social-yahoo:before, .#{$classPrefix}social-yelp:before, .#{$classPrefix}social-youtube:before, .#{$classPrefix}social-zerply:before, .#{$classPrefix}social-zurb:before, .#{$classPrefix}sound:before, .#{$classPrefix}star:before, .#{$classPrefix}stop:before, .#{$classPrefix}strikethrough:before, .#{$classPrefix}subscript:before, .#{$classPrefix}superscript:before, .#{$classPrefix}tablet-landscape:before, .#{$classPrefix}tablet-portrait:before, .#{$classPrefix}target-two:before, .#{$classPrefix}target:before, .#{$classPrefix}telephone-accessible:before, .#{$classPrefix}telephone:before, .#{$classPrefix}text-color:before, .#{$classPrefix}thumbnails:before, .#{$classPrefix}ticket:before, .#{$classPrefix}torso-business:before, .#{$classPrefix}torso-female:before, .#{$classPrefix}torso:before, .#{$classPrefix}torsos-all-female:before, .#{$classPrefix}torsos-all:before, .#{$classPrefix}torsos-female-male:before, .#{$classPrefix}torsos-male-female:before, .#{$classPrefix}torsos:before, .#{$classPrefix}trash:before, .#{$classPrefix}trees:before, .#{$classPrefix}trophy:before, .#{$classPrefix}underline:before, .#{$classPrefix}universal-access:before, .#{$classPrefix}unlink:before, .#{$classPrefix}unlock:before, .#{$classPrefix}upload-cloud:before, .#{$classPrefix}upload:before, .#{$classPrefix}usb:before, .#{$classPrefix}video:before, .#{$classPrefix}volume-none:before, .#{$classPrefix}volume-strike:before, .#{$classPrefix}volume:before, .#{$classPrefix}web:before, .#{$classPrefix}wheelchair:before, .#{$classPrefix}widget:before, .#{$classPrefix}wrench:before, .#{$classPrefix}x-circle:before, .#{$classPrefix}x:before, .#{$classPrefix}yen:before, .#{$classPrefix}zoom-in:before, .#{$classPrefix}zoom-out:before"
);

@include i-content(address-book,          "100");
@include i-content(alert,                 "101");
@include i-content(align-center,          "102");
@include i-content(align-justify,         "103");
@include i-content(align-left,            "104");
@include i-content(align-right,           "105");
@include i-content(anchor,                "106");
@include i-content(annotate,              "107");
@include i-content(archive,               "108");
@include i-content(arrow-down,            "109");
@include i-content(arrow-left,            "10a");
@include i-content(arrow-right,           "10b");
@include i-content(arrow-up,              "10c");
@include i-content(arrows-compress,       "10d");
@include i-content(arrows-expand,         "10e");
@include i-content(arrows-in,             "10f");
@include i-content(arrows-out,            "110");
@include i-content(asl,                   "111");
@include i-content(asterisk,              "112");
@include i-content(at-sign,               "113");
@include i-content(background-color,      "114");
@include i-content(battery-empty,         "115");
@include i-content(battery-full,          "116");
@include i-content(battery-half,          "117");
@include i-content(bitcoin-circle,        "118");
@include i-content(bitcoin,               "119");
@include i-content(blind,                 "11a");
@include i-content(bluetooth,             "11b");
@include i-content(bold,                  "11c");
@include i-content(book-bookmark,         "11d");
@include i-content(book,                  "11e");
@include i-content(bookmark,              "11f");
@include i-content(braille,               "120");
@include i-content(burst-new,             "121");
@include i-content(burst-sale,            "122");
@include i-content(burst,                 "123");
@include i-content(calendar,              "124");
@include i-content(camera,                "125");
@include i-content(check,                 "126");
@include i-content(checkbox,              "127");
@include i-content(clipboard-notes,       "128");
@include i-content(clipboard-pencil,      "129");
@include i-content(clipboard,             "12a");
@include i-content(clock,                 "12b");
@include i-content(closed-caption,        "12c");
@include i-content(cloud,                 "12d");
@include i-content(comment-minus,         "12e");
@include i-content(comment-quotes,        "12f");
@include i-content(comment-video,         "130");
@include i-content(comment,               "131");
@include i-content(comments,              "132");
@include i-content(compass,               "133");
@include i-content(contrast,              "134");
@include i-content(credit-card,           "135");
@include i-content(crop,                  "136");
@include i-content(crown,                 "137");
@include i-content(css3,                  "138");
@include i-content(database,              "139");
@include i-content(die-five,              "13a");
@include i-content(die-four,              "13b");
@include i-content(die-one,               "13c");
@include i-content(die-six,               "13d");
@include i-content(die-three,             "13e");
@include i-content(die-two,               "13f");
@include i-content(dislike,               "140");
@include i-content(dollar-bill,           "141");
@include i-content(dollar,                "142");
@include i-content(download,              "143");
@include i-content(eject,                 "144");
@include i-content(elevator,              "145");
@include i-content(euro,                  "146");
@include i-content(eye,                   "147");
@include i-content(fast-forward,          "148");
@include i-content(female-symbol,         "149");
@include i-content(female,                "14a");
@include i-content(filter,                "14b");
@include i-content(first-aid,             "14c");
@include i-content(flag,                  "14d");
@include i-content(folder-add,            "14e");
@include i-content(folder-lock,           "14f");
@include i-content(folder,                "150");
@include i-content(foot,                  "151");
@include i-content(foundation,            "152");
@include i-content(graph-bar,             "153");
@include i-content(graph-horizontal,      "154");
@include i-content(graph-pie,             "155");
@include i-content(graph-trend,           "156");
@include i-content(guide-dog,             "157");
@include i-content(hearing-aid,           "158");
@include i-content(heart,                 "159");
@include i-content(home,                  "15a");
@include i-content(html5,                 "15b");
@include i-content(indent-less,           "15c");
@include i-content(indent-more,           "15d");
@include i-content(info,                  "15e");
@include i-content(italic,                "15f");
@include i-content(key,                   "160");
@include i-content(laptop,                "161");
@include i-content(layout,                "162");
@include i-content(lightbulb,             "163");
@include i-content(like,                  "164");
@include i-content(link,                  "165");
@include i-content(list-bullet,           "166");
@include i-content(list-number,           "167");
@include i-content(list-thumbnails,       "168");
@include i-content(list,                  "169");
@include i-content(lock,                  "16a");
@include i-content(loop,                  "16b");
@include i-content(magnifying-glass,      "16c");
@include i-content(mail,                  "16d");
@include i-content(male-female,           "16e");
@include i-content(male-symbol,           "16f");
@include i-content(male,                  "170");
@include i-content(map,                   "171");
@include i-content(marker,                "172");
@include i-content(megaphone,             "173");
@include i-content(microphone,            "174");
@include i-content(minus-circle,          "175");
@include i-content(minus,                 "176");
@include i-content(mobile-signal,         "177");
@include i-content(mobile,                "178");
@include i-content(monitor,               "179");
@include i-content(mountains,             "17a");
@include i-content(music,                 "17b");
@include i-content(next,                  "17c");
@include i-content(no-dogs,               "17d");
@include i-content(no-smoking,            "17e");
@include i-content(page-add,              "17f");
@include i-content(page-copy,             "180");
@include i-content(page-csv,              "181");
@include i-content(page-delete,           "182");
@include i-content(page-doc,              "183");
@include i-content(page-edit,             "184");
@include i-content(page-export-csv,       "185");
@include i-content(page-export-doc,       "186");
@include i-content(page-export-pdf,       "187");
@include i-content(page-export,           "188");
@include i-content(page-filled,           "189");
@include i-content(page-multiple,         "18a");
@include i-content(page-pdf,              "18b");
@include i-content(page-remove,           "18c");
@include i-content(page-search,           "18d");
@include i-content(page,                  "18e");
@include i-content(paint-bucket,          "18f");
@include i-content(paperclip,             "190");
@include i-content(pause,                 "191");
@include i-content(paw,                   "192");
@include i-content(paypal,                "193");
@include i-content(pencil,                "194");
@include i-content(photo,                 "195");
@include i-content(play-circle,           "196");
@include i-content(play-video,            "197");
@include i-content(play,                  "198");
@include i-content(plus,                  "199");
@include i-content(pound,                 "19a");
@include i-content(power,                 "19b");
@include i-content(previous,              "19c");
@include i-content(price-tag,             "19d");
@include i-content(pricetag-multiple,     "19e");
@include i-content(print,                 "19f");
@include i-content(prohibited,            "1a0");
@include i-content(projection-screen,     "1a1");
@include i-content(puzzle,                "1a2");
@include i-content(quote,                 "1a3");
@include i-content(record,                "1a4");
@include i-content(refresh,               "1a5");
@include i-content(results-demographics,  "1a6");
@include i-content(results,               "1a7");
@include i-content(rewind-ten,            "1a8");
@include i-content(rewind,                "1a9");
@include i-content(rss,                   "1aa");
@include i-content(safety-cone,           "1ab");
@include i-content(save,                  "1ac");
@include i-content(share,                 "1ad");
@include i-content(sheriff-badge,         "1ae");
@include i-content(shield,                "1af");
@include i-content(shopping-bag,          "1b0");
@include i-content(shopping-cart,         "1b1");
@include i-content(shuffle,               "1b2");
@include i-content(skull,                 "1b3");
@include i-content(social-500px,          "1b4");
@include i-content(social-adobe,          "1b5");
@include i-content(social-amazon,         "1b6");
@include i-content(social-android,        "1b7");
@include i-content(social-apple,          "1b8");
@include i-content(social-behance,        "1b9");
@include i-content(social-bing,           "1ba");
@include i-content(social-blogger,        "1bb");
@include i-content(social-delicious,      "1bc");
@include i-content(social-designer-news,  "1bd");
@include i-content(social-deviant-art,    "1be");
@include i-content(social-digg,           "1bf");
@include i-content(social-dribbble,       "1c0");
@include i-content(social-drive,          "1c1");
@include i-content(social-dropbox,        "1c2");
@include i-content(social-evernote,       "1c3");
@include i-content(social-facebook,       "1c4");
@include i-content(social-flickr,         "1c5");
@include i-content(social-forrst,         "1c6");
@include i-content(social-foursquare,     "1c7");
@include i-content(social-game-center,    "1c8");
@include i-content(social-github,         "1c9");
@include i-content(social-google-plus,    "1ca");
@include i-content(social-hacker-news,    "1cb");
@include i-content(social-hi5,            "1cc");
@include i-content(social-instagram,      "1cd");
@include i-content(social-joomla,         "1ce");
@include i-content(social-lastfm,         "1cf");
@include i-content(social-linkedin,       "1d0");
@include i-content(social-medium,         "1d1");
@include i-content(social-myspace,        "1d2");
@include i-content(social-orkut,          "1d3");
@include i-content(social-path,           "1d4");
@include i-content(social-picasa,         "1d5");
@include i-content(social-pinterest,      "1d6");
@include i-content(social-rdio,           "1d7");
@include i-content(social-reddit,         "1d8");
@include i-content(social-skillshare,     "1d9");
@include i-content(social-skype,          "1da");
@include i-content(social-smashing-mag,   "1db");
@include i-content(social-snapchat,       "1dc");
@include i-content(social-spotify,        "1dd");
@include i-content(social-squidoo,        "1de");
@include i-content(social-stack-overflow, "1df");
@include i-content(social-steam,          "1e0");
@include i-content(social-stumbleupon,    "1e1");
@include i-content(social-treehouse,      "1e2");
@include i-content(social-tumblr,         "1e3");
@include i-content(social-twitter,        "1e4");
@include i-content(social-vimeo,          "1e5");
@include i-content(social-windows,        "1e6");
@include i-content(social-xbox,           "1e7");
@include i-content(social-yahoo,          "1e8");
@include i-content(social-yelp,           "1e9");
@include i-content(social-youtube,        "1ea");
@include i-content(social-zerply,         "1eb");
@include i-content(social-zurb,           "1ec");
@include i-content(sound,                 "1ed");
@include i-content(star,                  "1ee");
@include i-content(stop,                  "1ef");
@include i-content(strikethrough,         "1f0");
@include i-content(subscript,             "1f1");
@include i-content(superscript,           "1f2");
@include i-content(tablet-landscape,      "1f3");
@include i-content(tablet-portrait,       "1f4");
@include i-content(target-two,            "1f5");
@include i-content(target,                "1f6");
@include i-content(telephone-accessible,  "1f7");
@include i-content(telephone,             "1f8");
@include i-content(text-color,            "1f9");
@include i-content(thumbnails,            "1fa");
@include i-content(ticket,                "1fb");
@include i-content(torso-business,        "1fc");
@include i-content(torso-female,          "1fd");
@include i-content(torso,                 "1fe");
@include i-content(torsos-all-female,     "1ff");
@include i-content(torsos-all,            "200");
@include i-content(torsos-female-male,    "201");
@include i-content(torsos-male-female,    "202");
@include i-content(torsos,                "203");
@include i-content(trash,                 "204");
@include i-content(trees,                 "205");
@include i-content(trophy,                "206");
@include i-content(underline,             "207");
@include i-content(universal-access,      "208");
@include i-content(unlink,                "209");
@include i-content(unlock,                "20a");
@include i-content(upload-cloud,          "20b");
@include i-content(upload,                "20c");
@include i-content(usb,                   "20d");
@include i-content(video,                 "20e");
@include i-content(volume-none,           "20f");
@include i-content(volume-strike,         "210");
@include i-content(volume,                "211");
@include i-content(web,                   "212");
@include i-content(wheelchair,            "213");
@include i-content(widget,                "214");
@include i-content(wrench,                "215");
@include i-content(x-circle,              "216");
@include i-content(x,                     "217");
@include i-content(yen,                   "218");
@include i-content(zoom-in,               "219");
@include i-content(zoom-out,              "21a");

Sass: /resources/assets/sass/foundation_icons_settings.scss

$fontFileName: "../fonts/foundation-icons";
$fontName: "foundation-icons";
$classPrefix: "fi-";

@mixin face {
  @font-face {
    font-family: $fontName;
    src: url('#{$fontFileName}.eot');
    src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'),
         url('#{$fontFileName}.woff') format('woff'),
         url('#{$fontFileName}.ttf') format('truetype'),
         url('#{$fontFileName}.svg##{$fontName}') format('svg');
    font-weight: normal;
    font-style: normal;
  }
}

@mixin i-class($names...) {
  #{$names} {
    font-family: "foundation-icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    text-decoration: inherit;
  }
}

@mixin i-content($name, $pua) {
  .#{$classPrefix}#{$name}:before {
    content: "\f#{$pua}";
  }
}

Html: /resources/views/welcome.blade.php

<!DOCTYPE html>
<html>
    <head>
        <title>Laravel/Foundation</title>

        <link rel="stylesheet" type="text/css" href="{{ elixir('css/foundation.css') }}" />
    </head>
    <body>
        <div class="row">
            <div class="large-12 column">
                <ul class="accordion" data-accordion role="tablist">
                    <li class="accordion-item is-active">
                        <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                        <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                        <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                        <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                            Panel 1. Lorem ipsum dolor
                        </div>
                    </li>
                    <li class="accordion-item">
                        <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                        <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                        <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                        <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                            Panel 2. Lorem ipsum dolor
                        </div>
                    </li>
                    <li class="accordion-item">
                        <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                        <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                        <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                        <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                            Panel 3. Lorem ipsum dolor
                        </div>
                    </li>
                </ul>            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="vertical menu" data-accordion-menu>
                    <li>
                        <a href="#">Item 1</a>
                        <ul class="menu vertical nested is-active">
                            <li>
                                <a href="#">Item 1A</a>
                                <ul class="menu vertical nested">
                                    <li><a href="#">Item 1Ai</a></li>
                                    <li><a href="#">Item 1Aii</a></li>
                                    <li><a href="#">Item 1Aiii</a></li>
                                </ul>
                            </li>
                            <li><a href="#">Item 1B</a></li>
                            <li><a href="#">Item 1C</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 2</a>
                        <ul class="menu vertical nested">
                            <li><a href="#">Item 2A</a></li>
                            <li><a href="#">Item 2B</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Item 3</a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <span class="secondary badge">2</span>
                <span class="success badge">3</span>
                <span class="alert badge">A</span>
                <span class="warning badge">B</span>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <nav aria-label="You are here:" role="navigation">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Features</a></li>
                        <li class="disabled">Gene Splicing</li>
                        <li><span class="show-for-sr">Current: </span> Cloning</li>
                    </ul>
                </nav>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <a href="#" class="button">Learn More</a>
                <a href="#features" class="button">View All Features</a>

                <button type="button" class="success button">Save</button>
                <button type="button" class="alert button">Delete</button>

                <a class="tiny button" href="#">So Tiny</a>
                <a class="small button" href="#">So Small</a>
                <a class="large button" href="#">So Large</a>
                <a class="expanded button" href="#">Such Expand</a>

                <div class="button-group">
                    <a class="button">One</a>
                    <a class="button">Two</a>
                    <a class="button">Three</a>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="callout">
                    <h5>This is a callout.</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout secondary">
                    <h5>This is a secondary callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout success">
                    <h5>This is a success callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout warning">
                    <h5>This is a warning callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout alert">
                    <h5>This is an alert callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="callout" data-closable data-alert>
                    <p>You can so totally close this!</p>
                    <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
                        <span aria-hidden="true">×</span>
                    </button>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="vertical menu" data-drilldown style="width: 200px" id="m1">
                    <li>
                        <a href="#">Item 1</a>
                        <ul class="vertical menu" id="m2">
                            <li>
                                <a href="#">Item 1A</a>
                                <ul class="vertical menu" id="m3">
                                    <li><a href="#">Item 1Aa</a></li>
                                    <li><a href="#">Item 1Ba</a></li>
                                    <li><a href="#">Item 1Ca</a></li>
                                    <li><a href="#">Item 1Da</a></li>
                                    <li><a href="#">Item 1Ea</a></li>
                                </ul>
                            </li>
                            <li><a href="#">Item 1B</a></li>
                            <li><a href="#">Item 1C</a></li>
                            <li><a href="#">Item 1D</a></li>
                            <li><a href="#">Item 1E</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 2</a>
                        <ul class="vertical menu">
                            <li><a href="#">Item 2A</a></li>
                            <li><a href="#">Item 2B</a></li>
                            <li><a href="#">Item 2C</a></li>
                            <li><a href="#">Item 2D</a></li>
                            <li><a href="#">Item 2E</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 3</a>
                        <ul class="vertical menu">
                            <li><a href="#">Item 3A</a></li>
                            <li><a href="#">Item 3B</a></li>
                            <li><a href="#">Item 3C</a></li>
                            <li><a href="#">Item 3D</a></li>
                            <li><a href="#">Item 3E</a></li>
                        </ul>
                    </li>
                    <li><a href='#'> Item 4</a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="dropdown menu" data-dropdown-menu>
                    <li>
                        <a>Item 1</a>
                        <ul class="menu">
                            <li><a href="#">Item 1A Loooong</a></li>
                            <li>
                                <a href='#'> Item 1 sub</a>
                                <ul class='menu'>
                                    <li><a href='#'>Item 1 subA</a></li>
                                    <li><a href='#'>Item 1 subB</a></li>
                                    <li>
                                        <a href='#'> Item 1 sub</a>
                                        <ul class='menu'>
                                            <li><a href='#'>Item 1 subA</a></li>
                                            <li><a href='#'>Item 1 subB</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href='#'> Item 1 sub</a>
                                        <ul class='menu'>
                                            <li><a href='#'>Item 1 subA</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#">Item 1B</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 2</a>
                        <ul class="menu">
                            <li><a href="#">Item 2A</a></li>
                            <li><a href="#">Item 2B</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Item 3</a></li>
                    <li><a href='#'>Item 4</a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <button class="button" type="button" data-toggle="example-dropdown">Toggle Dropdown</button>
                <div class="dropdown-pane" id="example-dropdown" data-dropdown>
                    Just some junk that needs to be said. Or not. Your choice.
                </div>
            </div>
        </div>
        <hr>

That should just about do it.

schir1964 left a reply on Foundation 6 And Foundation Icons 3 Integration

After much fiddling around and comparing to others posts I've finally got Foundation 6 with Foundation Icons 3 integrated into Laravel via Sass and Elixer.

I thought I would share my setup files to save others the grief I went through getting it to work.

It's not pretty and there may be a more elegant way to integrate them and I'll gladly use whatever someone else comes up with. (8^D)

Environment: Windows 7 (x64), XAMPP, Laravel 5.2, Foundation 6, Foundation Icons 3.

Install Gulp/Elixer

Follow the Laravel Elixer instructions for getting Gulp and Elixer installed/setup.

Install Motion-UI

Certain features of Foundation 6 depend on this package being installed.

npm install motion-ui --save-dev

Install Foundation 6

composer require "zurb/foundation" --dev

Download jQuery Core

jQuery - http://jquery.com/

Download into a temporary folder.

Download Foundation Icons 3

Foundation Icons 3 - http://zurb.com/playground/foundation-icon-fonts-3

Extract files into a temporary folder.

Directory Structure Setup

resources
|__fonts
|__js
|  |__foundation
|__sass

public
|__css
|__fonts
|__js

Files

Copy jQuery file:

  • tmpFolder/jquery-2.1.4.js

To:

  • /resources/assets/js

Copy the font files:

  • tmpFolder/foundation-icons/foundation-icons.eot
  • tmpFolder/foundation-icons/foundation-icons.svg
  • tmpFolder/foundation-icons/foundation-icons.ttf
  • tmpFolder/foundation-icons/foundation-icons.woff

To:

  • /resources/assets/fonts

Javascript: /gulpfile.js

elixir(function(mix) {
    mix.sass(
      'app.scss',
      'public/css/foundation.css',
      {
        includePaths: [
            'node_modules/motion-ui/src',
            'vendor/zurb/foundation/scss/'
        ],
        outputStyle: 'expanded'
      }
    );

    mix.copy('node_modules/motion-ui/dist/motion-ui.js', 'resources/assets/js/foundation');
    mix.copy('vendor/zurb/foundation/js/*.js', 'resources/assets/js/foundation');
    mix.scripts(
      [
        'jquery-2.1.4.js',
        'foundation/motion-ui.js',
        'foundation/foundation.core.js',
        'foundation/foundation.abide.js',
        'foundation/foundation.accordion.js',
        'foundation/foundation.accordionMenu.js',
        'foundation/foundation.drilldown.js',
        'foundation/foundation.dropdown.js',
        'foundation/foundation.dropdownMenu.js',
        'foundation/foundation.equalizer.js',
        'foundation/foundation.interchange.js',
        'foundation/foundation.magellan.js',
        'foundation/foundation.offcanvas.js',
        'foundation/foundation.orbit.js',
        'foundation/foundation.responsiveMenu.js',
        'foundation/foundation.responsiveToggle.js',
        'foundation/foundation.reveal.js',
        'foundation/foundation.slider.js',
        'foundation/foundation.sticky.js',
        'foundation/foundation.tabs.js',
        'foundation/foundation.toggler.js',
        'foundation/foundation.tooltip.js',
        'foundation/foundation.util.box.js',
        'foundation/foundation.util.keyboard.js',
        'foundation/foundation.util.mediaQuery.js',
        'foundation/foundation.util.motion.js',
        'foundation/foundation.util.nest.js',
        'foundation/foundation.util.timerAndImageLoader.js',
        'foundation/foundation.util.touch.js',
        'foundation/foundation.util.triggers.js'
      ],
      'public/js/foundation.js'
    );

    mix.copy('resources/assets/fonts/foundation-icons.*', 'public/fonts');

    mix.version(['css/foundation.css', 'js/foundation.js']);

    mix.copy('resources/assets/fonts/foundation-icons.*', 'public/build/fonts');
});

Sass: /resources/assets/sass/app.scss

@import 'motion-ui';
@include motion-ui-transitions;

@import 'foundation';
@include foundation-everything;

@import 'foundation_icons';

Sass: /resources/assets/sass/foundation_icons.scss

@import "foundation_icons_settings";

/* font-face */
@include face;

/* icons */
@include i-class(
  ".#{$classPrefix}address-book:before, .#{$classPrefix}alert:before, .#{$classPrefix}align-center:before, .#{$classPrefix}align-justify:before, .#{$classPrefix}align-left:before, .#{$classPrefix}align-right:before, .#{$classPrefix}anchor:before, .#{$classPrefix}annotate:before, .#{$classPrefix}archive:before, .#{$classPrefix}arrow-down:before, .#{$classPrefix}arrow-left:before, .#{$classPrefix}arrow-right:before, .#{$classPrefix}arrow-up:before, .#{$classPrefix}arrows-compress:before, .#{$classPrefix}arrows-expand:before, .#{$classPrefix}arrows-in:before, .#{$classPrefix}arrows-out:before, .#{$classPrefix}asl:before, .#{$classPrefix}asterisk:before, .#{$classPrefix}at-sign:before, .#{$classPrefix}background-color:before, .#{$classPrefix}battery-empty:before, .#{$classPrefix}battery-full:before, .#{$classPrefix}battery-half:before, .#{$classPrefix}bitcoin-circle:before, .#{$classPrefix}bitcoin:before, .#{$classPrefix}blind:before, .#{$classPrefix}bluetooth:before, .#{$classPrefix}bold:before, .#{$classPrefix}book-bookmark:before, .#{$classPrefix}book:before, .#{$classPrefix}bookmark:before, .#{$classPrefix}braille:before, .#{$classPrefix}burst-new:before, .#{$classPrefix}burst-sale:before, .#{$classPrefix}burst:before, .#{$classPrefix}calendar:before, .#{$classPrefix}camera:before, .#{$classPrefix}check:before, .#{$classPrefix}checkbox:before, .#{$classPrefix}clipboard-notes:before, .#{$classPrefix}clipboard-pencil:before, .#{$classPrefix}clipboard:before, .#{$classPrefix}clock:before, .#{$classPrefix}closed-caption:before, .#{$classPrefix}cloud:before, .#{$classPrefix}comment-minus:before, .#{$classPrefix}comment-quotes:before, .#{$classPrefix}comment-video:before, .#{$classPrefix}comment:before, .#{$classPrefix}comments:before, .#{$classPrefix}compass:before, .#{$classPrefix}contrast:before, .#{$classPrefix}credit-card:before, .#{$classPrefix}crop:before, .#{$classPrefix}crown:before, .#{$classPrefix}css3:before, .#{$classPrefix}database:before, .#{$classPrefix}die-five:before, .#{$classPrefix}die-four:before, .#{$classPrefix}die-one:before, .#{$classPrefix}die-six:before, .#{$classPrefix}die-three:before, .#{$classPrefix}die-two:before, .#{$classPrefix}dislike:before, .#{$classPrefix}dollar-bill:before, .#{$classPrefix}dollar:before, .#{$classPrefix}download:before, .#{$classPrefix}eject:before, .#{$classPrefix}elevator:before, .#{$classPrefix}euro:before, .#{$classPrefix}eye:before, .#{$classPrefix}fast-forward:before, .#{$classPrefix}female-symbol:before, .#{$classPrefix}female:before, .#{$classPrefix}filter:before, .#{$classPrefix}first-aid:before, .#{$classPrefix}flag:before, .#{$classPrefix}folder-add:before, .#{$classPrefix}folder-lock:before, .#{$classPrefix}folder:before, .#{$classPrefix}foot:before, .#{$classPrefix}foundation:before, .#{$classPrefix}graph-bar:before, .#{$classPrefix}graph-horizontal:before, .#{$classPrefix}graph-pie:before, .#{$classPrefix}graph-trend:before, .#{$classPrefix}guide-dog:before, .#{$classPrefix}hearing-aid:before, .#{$classPrefix}heart:before, .#{$classPrefix}home:before, .#{$classPrefix}html5:before, .#{$classPrefix}indent-less:before, .#{$classPrefix}indent-more:before, .#{$classPrefix}info:before, .#{$classPrefix}italic:before, .#{$classPrefix}key:before, .#{$classPrefix}laptop:before, .#{$classPrefix}layout:before, .#{$classPrefix}lightbulb:before, .#{$classPrefix}like:before, .#{$classPrefix}link:before, .#{$classPrefix}list-bullet:before, .#{$classPrefix}list-number:before, .#{$classPrefix}list-thumbnails:before, .#{$classPrefix}list:before, .#{$classPrefix}lock:before, .#{$classPrefix}loop:before, .#{$classPrefix}magnifying-glass:before, .#{$classPrefix}mail:before, .#{$classPrefix}male-female:before, .#{$classPrefix}male-symbol:before, .#{$classPrefix}male:before, .#{$classPrefix}map:before, .#{$classPrefix}marker:before, .#{$classPrefix}megaphone:before, .#{$classPrefix}microphone:before, .#{$classPrefix}minus-circle:before, .#{$classPrefix}minus:before, .#{$classPrefix}mobile-signal:before, .#{$classPrefix}mobile:before, .#{$classPrefix}monitor:before, .#{$classPrefix}mountains:before, .#{$classPrefix}music:before, .#{$classPrefix}next:before, .#{$classPrefix}no-dogs:before, .#{$classPrefix}no-smoking:before, .#{$classPrefix}page-add:before, .#{$classPrefix}page-copy:before, .#{$classPrefix}page-csv:before, .#{$classPrefix}page-delete:before, .#{$classPrefix}page-doc:before, .#{$classPrefix}page-edit:before, .#{$classPrefix}page-export-csv:before, .#{$classPrefix}page-export-doc:before, .#{$classPrefix}page-export-pdf:before, .#{$classPrefix}page-export:before, .#{$classPrefix}page-filled:before, .#{$classPrefix}page-multiple:before, .#{$classPrefix}page-pdf:before, .#{$classPrefix}page-remove:before, .#{$classPrefix}page-search:before, .#{$classPrefix}page:before, .#{$classPrefix}paint-bucket:before, .#{$classPrefix}paperclip:before, .#{$classPrefix}pause:before, .#{$classPrefix}paw:before, .#{$classPrefix}paypal:before, .#{$classPrefix}pencil:before, .#{$classPrefix}photo:before, .#{$classPrefix}play-circle:before, .#{$classPrefix}play-video:before, .#{$classPrefix}play:before, .#{$classPrefix}plus:before, .#{$classPrefix}pound:before, .#{$classPrefix}power:before, .#{$classPrefix}previous:before, .#{$classPrefix}price-tag:before, .#{$classPrefix}pricetag-multiple:before, .#{$classPrefix}print:before, .#{$classPrefix}prohibited:before, .#{$classPrefix}projection-screen:before, .#{$classPrefix}puzzle:before, .#{$classPrefix}quote:before, .#{$classPrefix}record:before, .#{$classPrefix}refresh:before, .#{$classPrefix}results-demographics:before, .#{$classPrefix}results:before, .#{$classPrefix}rewind-ten:before, .#{$classPrefix}rewind:before, .#{$classPrefix}rss:before, .#{$classPrefix}safety-cone:before, .#{$classPrefix}save:before, .#{$classPrefix}share:before, .#{$classPrefix}sheriff-badge:before, .#{$classPrefix}shield:before, .#{$classPrefix}shopping-bag:before, .#{$classPrefix}shopping-cart:before, .#{$classPrefix}shuffle:before, .#{$classPrefix}skull:before, .#{$classPrefix}social-500px:before, .#{$classPrefix}social-adobe:before, .#{$classPrefix}social-amazon:before, .#{$classPrefix}social-android:before, .#{$classPrefix}social-apple:before, .#{$classPrefix}social-behance:before, .#{$classPrefix}social-bing:before, .#{$classPrefix}social-blogger:before, .#{$classPrefix}social-delicious:before, .#{$classPrefix}social-designer-news:before, .#{$classPrefix}social-deviant-art:before, .#{$classPrefix}social-digg:before, .#{$classPrefix}social-dribbble:before, .#{$classPrefix}social-drive:before, .#{$classPrefix}social-dropbox:before, .#{$classPrefix}social-evernote:before, .#{$classPrefix}social-facebook:before, .#{$classPrefix}social-flickr:before, .#{$classPrefix}social-forrst:before, .#{$classPrefix}social-foursquare:before, .#{$classPrefix}social-game-center:before, .#{$classPrefix}social-github:before, .#{$classPrefix}social-google-plus:before, .#{$classPrefix}social-hacker-news:before, .#{$classPrefix}social-hi5:before, .#{$classPrefix}social-instagram:before, .#{$classPrefix}social-joomla:before, .#{$classPrefix}social-lastfm:before, .#{$classPrefix}social-linkedin:before, .#{$classPrefix}social-medium:before, .#{$classPrefix}social-myspace:before, .#{$classPrefix}social-orkut:before, .#{$classPrefix}social-path:before, .#{$classPrefix}social-picasa:before, .#{$classPrefix}social-pinterest:before, .#{$classPrefix}social-rdio:before, .#{$classPrefix}social-reddit:before, .#{$classPrefix}social-skillshare:before, .#{$classPrefix}social-skype:before, .#{$classPrefix}social-smashing-mag:before, .#{$classPrefix}social-snapchat:before, .#{$classPrefix}social-spotify:before, .#{$classPrefix}social-squidoo:before, .#{$classPrefix}social-stack-overflow:before, .#{$classPrefix}social-steam:before, .#{$classPrefix}social-stumbleupon:before, .#{$classPrefix}social-treehouse:before, .#{$classPrefix}social-tumblr:before, .#{$classPrefix}social-twitter:before, .#{$classPrefix}social-vimeo:before, .#{$classPrefix}social-windows:before, .#{$classPrefix}social-xbox:before, .#{$classPrefix}social-yahoo:before, .#{$classPrefix}social-yelp:before, .#{$classPrefix}social-youtube:before, .#{$classPrefix}social-zerply:before, .#{$classPrefix}social-zurb:before, .#{$classPrefix}sound:before, .#{$classPrefix}star:before, .#{$classPrefix}stop:before, .#{$classPrefix}strikethrough:before, .#{$classPrefix}subscript:before, .#{$classPrefix}superscript:before, .#{$classPrefix}tablet-landscape:before, .#{$classPrefix}tablet-portrait:before, .#{$classPrefix}target-two:before, .#{$classPrefix}target:before, .#{$classPrefix}telephone-accessible:before, .#{$classPrefix}telephone:before, .#{$classPrefix}text-color:before, .#{$classPrefix}thumbnails:before, .#{$classPrefix}ticket:before, .#{$classPrefix}torso-business:before, .#{$classPrefix}torso-female:before, .#{$classPrefix}torso:before, .#{$classPrefix}torsos-all-female:before, .#{$classPrefix}torsos-all:before, .#{$classPrefix}torsos-female-male:before, .#{$classPrefix}torsos-male-female:before, .#{$classPrefix}torsos:before, .#{$classPrefix}trash:before, .#{$classPrefix}trees:before, .#{$classPrefix}trophy:before, .#{$classPrefix}underline:before, .#{$classPrefix}universal-access:before, .#{$classPrefix}unlink:before, .#{$classPrefix}unlock:before, .#{$classPrefix}upload-cloud:before, .#{$classPrefix}upload:before, .#{$classPrefix}usb:before, .#{$classPrefix}video:before, .#{$classPrefix}volume-none:before, .#{$classPrefix}volume-strike:before, .#{$classPrefix}volume:before, .#{$classPrefix}web:before, .#{$classPrefix}wheelchair:before, .#{$classPrefix}widget:before, .#{$classPrefix}wrench:before, .#{$classPrefix}x-circle:before, .#{$classPrefix}x:before, .#{$classPrefix}yen:before, .#{$classPrefix}zoom-in:before, .#{$classPrefix}zoom-out:before"
);

@include i-content(address-book,          "100");
@include i-content(alert,                 "101");
@include i-content(align-center,          "102");
@include i-content(align-justify,         "103");
@include i-content(align-left,            "104");
@include i-content(align-right,           "105");
@include i-content(anchor,                "106");
@include i-content(annotate,              "107");
@include i-content(archive,               "108");
@include i-content(arrow-down,            "109");
@include i-content(arrow-left,            "10a");
@include i-content(arrow-right,           "10b");
@include i-content(arrow-up,              "10c");
@include i-content(arrows-compress,       "10d");
@include i-content(arrows-expand,         "10e");
@include i-content(arrows-in,             "10f");
@include i-content(arrows-out,            "110");
@include i-content(asl,                   "111");
@include i-content(asterisk,              "112");
@include i-content(at-sign,               "113");
@include i-content(background-color,      "114");
@include i-content(battery-empty,         "115");
@include i-content(battery-full,          "116");
@include i-content(battery-half,          "117");
@include i-content(bitcoin-circle,        "118");
@include i-content(bitcoin,               "119");
@include i-content(blind,                 "11a");
@include i-content(bluetooth,             "11b");
@include i-content(bold,                  "11c");
@include i-content(book-bookmark,         "11d");
@include i-content(book,                  "11e");
@include i-content(bookmark,              "11f");
@include i-content(braille,               "120");
@include i-content(burst-new,             "121");
@include i-content(burst-sale,            "122");
@include i-content(burst,                 "123");
@include i-content(calendar,              "124");
@include i-content(camera,                "125");
@include i-content(check,                 "126");
@include i-content(checkbox,              "127");
@include i-content(clipboard-notes,       "128");
@include i-content(clipboard-pencil,      "129");
@include i-content(clipboard,             "12a");
@include i-content(clock,                 "12b");
@include i-content(closed-caption,        "12c");
@include i-content(cloud,                 "12d");
@include i-content(comment-minus,         "12e");
@include i-content(comment-quotes,        "12f");
@include i-content(comment-video,         "130");
@include i-content(comment,               "131");
@include i-content(comments,              "132");
@include i-content(compass,               "133");
@include i-content(contrast,              "134");
@include i-content(credit-card,           "135");
@include i-content(crop,                  "136");
@include i-content(crown,                 "137");
@include i-content(css3,                  "138");
@include i-content(database,              "139");
@include i-content(die-five,              "13a");
@include i-content(die-four,              "13b");
@include i-content(die-one,               "13c");
@include i-content(die-six,               "13d");
@include i-content(die-three,             "13e");
@include i-content(die-two,               "13f");
@include i-content(dislike,               "140");
@include i-content(dollar-bill,           "141");
@include i-content(dollar,                "142");
@include i-content(download,              "143");
@include i-content(eject,                 "144");
@include i-content(elevator,              "145");
@include i-content(euro,                  "146");
@include i-content(eye,                   "147");
@include i-content(fast-forward,          "148");
@include i-content(female-symbol,         "149");
@include i-content(female,                "14a");
@include i-content(filter,                "14b");
@include i-content(first-aid,             "14c");
@include i-content(flag,                  "14d");
@include i-content(folder-add,            "14e");
@include i-content(folder-lock,           "14f");
@include i-content(folder,                "150");
@include i-content(foot,                  "151");
@include i-content(foundation,            "152");
@include i-content(graph-bar,             "153");
@include i-content(graph-horizontal,      "154");
@include i-content(graph-pie,             "155");
@include i-content(graph-trend,           "156");
@include i-content(guide-dog,             "157");
@include i-content(hearing-aid,           "158");
@include i-content(heart,                 "159");
@include i-content(home,                  "15a");
@include i-content(html5,                 "15b");
@include i-content(indent-less,           "15c");
@include i-content(indent-more,           "15d");
@include i-content(info,                  "15e");
@include i-content(italic,                "15f");
@include i-content(key,                   "160");
@include i-content(laptop,                "161");
@include i-content(layout,                "162");
@include i-content(lightbulb,             "163");
@include i-content(like,                  "164");
@include i-content(link,                  "165");
@include i-content(list-bullet,           "166");
@include i-content(list-number,           "167");
@include i-content(list-thumbnails,       "168");
@include i-content(list,                  "169");
@include i-content(lock,                  "16a");
@include i-content(loop,                  "16b");
@include i-content(magnifying-glass,      "16c");
@include i-content(mail,                  "16d");
@include i-content(male-female,           "16e");
@include i-content(male-symbol,           "16f");
@include i-content(male,                  "170");
@include i-content(map,                   "171");
@include i-content(marker,                "172");
@include i-content(megaphone,             "173");
@include i-content(microphone,            "174");
@include i-content(minus-circle,          "175");
@include i-content(minus,                 "176");
@include i-content(mobile-signal,         "177");
@include i-content(mobile,                "178");
@include i-content(monitor,               "179");
@include i-content(mountains,             "17a");
@include i-content(music,                 "17b");
@include i-content(next,                  "17c");
@include i-content(no-dogs,               "17d");
@include i-content(no-smoking,            "17e");
@include i-content(page-add,              "17f");
@include i-content(page-copy,             "180");
@include i-content(page-csv,              "181");
@include i-content(page-delete,           "182");
@include i-content(page-doc,              "183");
@include i-content(page-edit,             "184");
@include i-content(page-export-csv,       "185");
@include i-content(page-export-doc,       "186");
@include i-content(page-export-pdf,       "187");
@include i-content(page-export,           "188");
@include i-content(page-filled,           "189");
@include i-content(page-multiple,         "18a");
@include i-content(page-pdf,              "18b");
@include i-content(page-remove,           "18c");
@include i-content(page-search,           "18d");
@include i-content(page,                  "18e");
@include i-content(paint-bucket,          "18f");
@include i-content(paperclip,             "190");
@include i-content(pause,                 "191");
@include i-content(paw,                   "192");
@include i-content(paypal,                "193");
@include i-content(pencil,                "194");
@include i-content(photo,                 "195");
@include i-content(play-circle,           "196");
@include i-content(play-video,            "197");
@include i-content(play,                  "198");
@include i-content(plus,                  "199");
@include i-content(pound,                 "19a");
@include i-content(power,                 "19b");
@include i-content(previous,              "19c");
@include i-content(price-tag,             "19d");
@include i-content(pricetag-multiple,     "19e");
@include i-content(print,                 "19f");
@include i-content(prohibited,            "1a0");
@include i-content(projection-screen,     "1a1");
@include i-content(puzzle,                "1a2");
@include i-content(quote,                 "1a3");
@include i-content(record,                "1a4");
@include i-content(refresh,               "1a5");
@include i-content(results-demographics,  "1a6");
@include i-content(results,               "1a7");
@include i-content(rewind-ten,            "1a8");
@include i-content(rewind,                "1a9");
@include i-content(rss,                   "1aa");
@include i-content(safety-cone,           "1ab");
@include i-content(save,                  "1ac");
@include i-content(share,                 "1ad");
@include i-content(sheriff-badge,         "1ae");
@include i-content(shield,                "1af");
@include i-content(shopping-bag,          "1b0");
@include i-content(shopping-cart,         "1b1");
@include i-content(shuffle,               "1b2");
@include i-content(skull,                 "1b3");
@include i-content(social-500px,          "1b4");
@include i-content(social-adobe,          "1b5");
@include i-content(social-amazon,         "1b6");
@include i-content(social-android,        "1b7");
@include i-content(social-apple,          "1b8");
@include i-content(social-behance,        "1b9");
@include i-content(social-bing,           "1ba");
@include i-content(social-blogger,        "1bb");
@include i-content(social-delicious,      "1bc");
@include i-content(social-designer-news,  "1bd");
@include i-content(social-deviant-art,    "1be");
@include i-content(social-digg,           "1bf");
@include i-content(social-dribbble,       "1c0");
@include i-content(social-drive,          "1c1");
@include i-content(social-dropbox,        "1c2");
@include i-content(social-evernote,       "1c3");
@include i-content(social-facebook,       "1c4");
@include i-content(social-flickr,         "1c5");
@include i-content(social-forrst,         "1c6");
@include i-content(social-foursquare,     "1c7");
@include i-content(social-game-center,    "1c8");
@include i-content(social-github,         "1c9");
@include i-content(social-google-plus,    "1ca");
@include i-content(social-hacker-news,    "1cb");
@include i-content(social-hi5,            "1cc");
@include i-content(social-instagram,      "1cd");
@include i-content(social-joomla,         "1ce");
@include i-content(social-lastfm,         "1cf");
@include i-content(social-linkedin,       "1d0");
@include i-content(social-medium,         "1d1");
@include i-content(social-myspace,        "1d2");
@include i-content(social-orkut,          "1d3");
@include i-content(social-path,           "1d4");
@include i-content(social-picasa,         "1d5");
@include i-content(social-pinterest,      "1d6");
@include i-content(social-rdio,           "1d7");
@include i-content(social-reddit,         "1d8");
@include i-content(social-skillshare,     "1d9");
@include i-content(social-skype,          "1da");
@include i-content(social-smashing-mag,   "1db");
@include i-content(social-snapchat,       "1dc");
@include i-content(social-spotify,        "1dd");
@include i-content(social-squidoo,        "1de");
@include i-content(social-stack-overflow, "1df");
@include i-content(social-steam,          "1e0");
@include i-content(social-stumbleupon,    "1e1");
@include i-content(social-treehouse,      "1e2");
@include i-content(social-tumblr,         "1e3");
@include i-content(social-twitter,        "1e4");
@include i-content(social-vimeo,          "1e5");
@include i-content(social-windows,        "1e6");
@include i-content(social-xbox,           "1e7");
@include i-content(social-yahoo,          "1e8");
@include i-content(social-yelp,           "1e9");
@include i-content(social-youtube,        "1ea");
@include i-content(social-zerply,         "1eb");
@include i-content(social-zurb,           "1ec");
@include i-content(sound,                 "1ed");
@include i-content(star,                  "1ee");
@include i-content(stop,                  "1ef");
@include i-content(strikethrough,         "1f0");
@include i-content(subscript,             "1f1");
@include i-content(superscript,           "1f2");
@include i-content(tablet-landscape,      "1f3");
@include i-content(tablet-portrait,       "1f4");
@include i-content(target-two,            "1f5");
@include i-content(target,                "1f6");
@include i-content(telephone-accessible,  "1f7");
@include i-content(telephone,             "1f8");
@include i-content(text-color,            "1f9");
@include i-content(thumbnails,            "1fa");
@include i-content(ticket,                "1fb");
@include i-content(torso-business,        "1fc");
@include i-content(torso-female,          "1fd");
@include i-content(torso,                 "1fe");
@include i-content(torsos-all-female,     "1ff");
@include i-content(torsos-all,            "200");
@include i-content(torsos-female-male,    "201");
@include i-content(torsos-male-female,    "202");
@include i-content(torsos,                "203");
@include i-content(trash,                 "204");
@include i-content(trees,                 "205");
@include i-content(trophy,                "206");
@include i-content(underline,             "207");
@include i-content(universal-access,      "208");
@include i-content(unlink,                "209");
@include i-content(unlock,                "20a");
@include i-content(upload-cloud,          "20b");
@include i-content(upload,                "20c");
@include i-content(usb,                   "20d");
@include i-content(video,                 "20e");
@include i-content(volume-none,           "20f");
@include i-content(volume-strike,         "210");
@include i-content(volume,                "211");
@include i-content(web,                   "212");
@include i-content(wheelchair,            "213");
@include i-content(widget,                "214");
@include i-content(wrench,                "215");
@include i-content(x-circle,              "216");
@include i-content(x,                     "217");
@include i-content(yen,                   "218");
@include i-content(zoom-in,               "219");
@include i-content(zoom-out,              "21a");

Sass: /resources/assets/sass/foundation_icons_settings.scss

$fontFileName: "../fonts/foundation-icons";
$fontName: "foundation-icons";
$classPrefix: "fi-";

@mixin face {
  @font-face {
    font-family: $fontName;
    src: url('#{$fontFileName}.eot');
    src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'),
         url('#{$fontFileName}.woff') format('woff'),
         url('#{$fontFileName}.ttf') format('truetype'),
         url('#{$fontFileName}.svg##{$fontName}') format('svg');
    font-weight: normal;
    font-style: normal;
  }
}

@mixin i-class($names...) {
  #{$names} {
    font-family: "foundation-icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    text-decoration: inherit;
  }
}

@mixin i-content($name, $pua) {
  .#{$classPrefix}#{$name}:before {
    content: "\f#{$pua}";
  }
}

Html: /resources/views/welcome.blade.php

<!DOCTYPE html>
<html>
    <head>
        <title>Laravel/Foundation</title>

        <link rel="stylesheet" type="text/css" href="{{ elixir('css/foundation.css') }}" />
    </head>
    <body>
        <div class="row">
            <div class="large-12 column">
                <ul class="accordion" data-accordion role="tablist">
                    <li class="accordion-item is-active">
                        <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                        <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                        <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                        <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                            Panel 1. Lorem ipsum dolor
                        </div>
                    </li>
                    <li class="accordion-item">
                        <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                        <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                        <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                        <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                            Panel 2. Lorem ipsum dolor
                        </div>
                    </li>
                    <li class="accordion-item">
                        <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                        <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                        <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                        <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                            Panel 3. Lorem ipsum dolor
                        </div>
                    </li>
                </ul>            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="vertical menu" data-accordion-menu>
                    <li>
                        <a href="#">Item 1</a>
                        <ul class="menu vertical nested is-active">
                            <li>
                                <a href="#">Item 1A</a>
                                <ul class="menu vertical nested">
                                    <li><a href="#">Item 1Ai</a></li>
                                    <li><a href="#">Item 1Aii</a></li>
                                    <li><a href="#">Item 1Aiii</a></li>
                                </ul>
                            </li>
                            <li><a href="#">Item 1B</a></li>
                            <li><a href="#">Item 1C</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 2</a>
                        <ul class="menu vertical nested">
                            <li><a href="#">Item 2A</a></li>
                            <li><a href="#">Item 2B</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Item 3</a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <span class="secondary badge">2</span>
                <span class="success badge">3</span>
                <span class="alert badge">A</span>
                <span class="warning badge">B</span>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <nav aria-label="You are here:" role="navigation">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Features</a></li>
                        <li class="disabled">Gene Splicing</li>
                        <li><span class="show-for-sr">Current: </span> Cloning</li>
                    </ul>
                </nav>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <a href="#" class="button">Learn More</a>
                <a href="#features" class="button">View All Features</a>

                <button type="button" class="success button">Save</button>
                <button type="button" class="alert button">Delete</button>

                <a class="tiny button" href="#">So Tiny</a>
                <a class="small button" href="#">So Small</a>
                <a class="large button" href="#">So Large</a>
                <a class="expanded button" href="#">Such Expand</a>

                <div class="button-group">
                    <a class="button">One</a>
                    <a class="button">Two</a>
                    <a class="button">Three</a>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="callout">
                    <h5>This is a callout.</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout secondary">
                    <h5>This is a secondary callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout success">
                    <h5>This is a success callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout warning">
                    <h5>This is a warning callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
                <div class="callout alert">
                    <h5>This is an alert callout</h5>
                    <p>It has an easy to override visual style, and is appropriately subdued.</p>
                    <a href="#">It's dangerous to go alone, take this.</a>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="callout" data-closable data-alert>
                    <p>You can so totally close this!</p>
                    <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
                        <span aria-hidden="true">×</span>
                    </button>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="vertical menu" data-drilldown style="width: 200px" id="m1">
                    <li>
                        <a href="#">Item 1</a>
                        <ul class="vertical menu" id="m2">
                            <li>
                                <a href="#">Item 1A</a>
                                <ul class="vertical menu" id="m3">
                                    <li><a href="#">Item 1Aa</a></li>
                                    <li><a href="#">Item 1Ba</a></li>
                                    <li><a href="#">Item 1Ca</a></li>
                                    <li><a href="#">Item 1Da</a></li>
                                    <li><a href="#">Item 1Ea</a></li>
                                </ul>
                            </li>
                            <li><a href="#">Item 1B</a></li>
                            <li><a href="#">Item 1C</a></li>
                            <li><a href="#">Item 1D</a></li>
                            <li><a href="#">Item 1E</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 2</a>
                        <ul class="vertical menu">
                            <li><a href="#">Item 2A</a></li>
                            <li><a href="#">Item 2B</a></li>
                            <li><a href="#">Item 2C</a></li>
                            <li><a href="#">Item 2D</a></li>
                            <li><a href="#">Item 2E</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 3</a>
                        <ul class="vertical menu">
                            <li><a href="#">Item 3A</a></li>
                            <li><a href="#">Item 3B</a></li>
                            <li><a href="#">Item 3C</a></li>
                            <li><a href="#">Item 3D</a></li>
                            <li><a href="#">Item 3E</a></li>
                        </ul>
                    </li>
                    <li><a href='#'> Item 4</a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="dropdown menu" data-dropdown-menu>
                    <li>
                        <a>Item 1</a>
                        <ul class="menu">
                            <li><a href="#">Item 1A Loooong</a></li>
                            <li>
                                <a href='#'> Item 1 sub</a>
                                <ul class='menu'>
                                    <li><a href='#'>Item 1 subA</a></li>
                                    <li><a href='#'>Item 1 subB</a></li>
                                    <li>
                                        <a href='#'> Item 1 sub</a>
                                        <ul class='menu'>
                                            <li><a href='#'>Item 1 subA</a></li>
                                            <li><a href='#'>Item 1 subB</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href='#'> Item 1 sub</a>
                                        <ul class='menu'>
                                            <li><a href='#'>Item 1 subA</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li><a href="#">Item 1B</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">Item 2</a>
                        <ul class="menu">
                            <li><a href="#">Item 2A</a></li>
                            <li><a href="#">Item 2B</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Item 3</a></li>
                    <li><a href='#'>Item 4</a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <button class="button" type="button" data-toggle="example-dropdown">Toggle Dropdown</button>
                <div class="dropdown-pane" id="example-dropdown" data-dropdown>
                    Just some junk that needs to be said. Or not. Your choice.
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="callout clearfix">
                    <a class="button float-left">Left</a>
                    <a class="button float-right">Right</a>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <form>
                    <label>Input Label
                        <input type="text" placeholder=".small-12.columns" aria-describedby="exampleHelpText">
                    </label>
                    <p class="help-text" id="exampleHelpText">Here's how you use this input field!</p>
                    <label>
                        How many puppies?
                        <input type="number" value="100">
                    </label>
                    <label>
                        What books did you read over summer break?
                        <textarea placeholder="None">
                    </label>
                    <label>Select Menu
                        <select>
                            <option value="husker">Husker</option>
                            <option value="starbuck">Starbuck</option>
                            <option value="hotdog">Hot Dog</option>
                            <option value="apollo">Apollo</option>
                        </select>
                    </label>
                    <div class="row">
                        <fieldset class="large-6 columns">
                            <legend>Choose Your Favorite</legend>
                            <input type="radio" name="pokemon" value="Red" id="pokemonRed" required><label for="pokemonRed">Red</label>
                            <input type="radio" name="pokemon" value="Blue" id="pokemonBlue"><label for="pokemonBlue">Blue</label>
                            <input type="radio" name="pokemon" value="Yellow" id="pokemonYellow"><label for="pokemonYellow">Yellow</label>
                        </fieldset>
                        <fieldset class="large-6 columns">
                            <legend>Check these out</legend>
                            <input id="checkbox1" type="checkbox"><label for="checkbox1">Checkbox 1</label>
                            <input id="checkbox2" type="checkbox"><label for="checkbox2">Checkbox 2</label>
                            <input id="checkbox3" type="checkbox"><label for="checkbox3">Checkbox 3</label>
                        </fieldset>
                    </div>
                    <div class="row">
                        <div class="small-3 columns">
                            <label for="middle-label" class="right middle">Label</label>
                        </div>
                        <div class="small-9 columns">
                            <input type="text" id="middle-label" placeholder="Right- and middle-aligned text input">
                        </div>
                    </div>
                    <div class="input-group">
                        <span class="input-group-label">$</span>
                        <input class="input-group-field" type="url">
                        <a class="input-group-button button">Submit</a>
                    </div>
                </form>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <span class="secondary label">Secondary Label</span>
                <span class="success label">Success Label</span>
                <span class="alert label">Alert Label</span>
                <span class="warning label">Warning Label</span>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="menu">
                    <li><a href="#">One</a></li>
                    <li><a href="#">Two</a></li>
                    <li><a href="#">Three</a></li>
                    <li><a href="#">Four</a></li>
                </ul>
                <ul class="menu icon-top">
                    <li><a href="#"><i class="fi-list"></i> <span>One</span></a></li>
                    <li><a href="#"><i class="fi-list"></i> <span>Two</span></a></li>
                    <li><a href="#"><i class="fi-list"></i> <span>Three</span></a></li>
                    <li><a href="#"><i class="fi-list"></i> <span>Four</span></a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <ul class="pagination" role="navigation" aria-label="Pagination">
                    <li class="disabled">Previous <span class="show-for-sr">page</span></li>
                    <li class="current"><span class="show-for-sr">You're on page</span> 1</li>
                    <li><a href="#" aria-label="Page 2">2</a></li>
                    <li><a href="#" aria-label="Page 3">3</a></li>
                    <li><a href="#" aria-label="Page 4">4</a></li>
                    <li class="ellipsis" aria-hidden="true"></li>
                    <li><a href="#" aria-label="Page 12">12</a></li>
                    <li><a href="#" aria-label="Page 13">13</a></li>
                    <li><a href="#" aria-label="Next page">Next <span class="show-for-sr">page</span></a></li>
                </ul>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="slider" data-slider data-initial-start='50' data-end='200'>
                    <span class="slider-handle"  data-slider-handle role="slider" tabindex="1"></span>
                    <span class="slider-fill" data-slider-fill></span>
                    <input type="hidden">
                </div>
                <div class="slider vertical" data-slider data-initial-start='25' data-end='200' data-vertical="true">
                    <span class="slider-handle" data-slider-handle role="slider" tabindex="1"></span>
                    <span class="slider-fill" data-slider-fill></span>
                    <input type="hidden">
                </div>
                <div class="slider" data-slider data-initial-start='25' data-initial-end='75'>
                    <span class="slider-handle" data-slider-handle role="slider" tabindex="1"></span>
                    <span class="slider-fill" data-slider-fill></span>
                    <span class="slider-handle" data-slider-handle role="slider" tabindex="1"></span>
                    <input type="hidden">
                    <input type="hidden">
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="large-12 column">
                <div class="switch tiny">
                    <input class="switch
                            
03 Jan
2 years ago

schir1964 left a reply on Foundation 6 And Foundation Icons 3 Integration

I removed the HTML comments form the welcome.blade.php file so no one else has that issue.

I've added a step at the top to follow the Laravel Elixer instructions for getting gulp installed. That worked for me pretty well.

28 Dec
2 years ago

schir1964 started a new conversation Foundation 6 / Foundation Icons 3 - Integration

After much fiddling around and comparing to others posts I've finally got Foundation 6 with Foundation Icons 3 integrated into Laravel via Sass and Elixer.

I thought I would share my setup files to save others the grief I went through getting it to work.

It's not pretty and there may be a more elegant way to intregate them and I'll gladly use whatever someone else comes up with. (8^D)

Environment: Windows 7 (x64), XAMPP, Laravel 5.2, Foundation 6, Foundation Icons 3.

Install Foundation 6

composer require "zurb/foundation" --dev

Download jQuery Core jQuery Download into a temporary folder.

Download Foundation Icons 3 Foundation Icons 3 Extract files into a temporary folder.

Directory Structure Setup ` resources |__fonts |__js | |__foundation |__sass

public |__css |__fonts |__js `

Files

Copy jQuery file: tmpFolder/jquery-2.1.4.js To: /resources/assets/js

Copy the font files: tmpFolder/foundation-icons/foundation-icons.eot tmpFolder/foundation-icons/foundation-icons.svg tmpFolder/foundation-icons/foundation-icons.ttf tmpFolder/foundation-icons/foundation-icons.woff To: /resources/assets/fonts

Javascript: /gulpfile.js

elixir(function(mix) {
    mix.sass(
      'app.scss',
      'public/css/foundation.css',
      {
        includePaths: ['vendor/zurb/foundation/scss/'],
        outputStyle: 'expanded'
      }
    );

    mix.copy('vendor/zurb/foundation/js/*.js', 'resources/assets/js/foundation');
    mix.scripts(
      [
        'jquery-2.1.4.js',
        'foundation/foundation.core.js',
        'foundation/foundation.abide.js',
        'foundation/foundation.accordion.js',
        'foundation/foundation.accordionMenu.js',
        'foundation/foundation.drilldown.js',
        'foundation/foundation.dropdown.js',
        'foundation/foundation.dropdownMenu.js',
        'foundation/foundation.equalizer.js',
        'foundation/foundation.interchange.js',
        'foundation/foundation.magellan.js',
        'foundation/foundation.offcanvas.js',
        'foundation/foundation.orbit.js',
        'foundation/foundation.responsiveMenu.js',
        'foundation/foundation.responsiveToggle.js',
        'foundation/foundation.reveal.js',
        'foundation/foundation.slider.js',
        'foundation/foundation.sticky.js',
        'foundation/foundation.tabs.js',
        'foundation/foundation.toggler.js',
        'foundation/foundation.tooltip.js',
        'foundation/foundation.util.box.js',
        'foundation/foundation.util.keyboard.js',
        'foundation/foundation.util.mediaQuery.js',
        'foundation/foundation.util.motion.js',
        'foundation/foundation.util.nest.js',
        'foundation/foundation.util.timerAndImageLoader.js',
        'foundation/foundation.util.touch.js',
        'foundation/foundation.util.triggers.js'
      ],
      'public/js/foundation.js'
    );

    mix.copy('resources/assets/fonts/foundation-icons.*', 'public/fonts');

    mix.version(['css/foundation.css', 'js/foundation.js']);

    mix.copy('resources/assets/fonts/foundation-icons.*', 'public/build/fonts');
});

Sass: /resources/assets/sass/app.scss

@import 'settings/settings';
@import 'foundation';
@include foundation-everything;

@import 'foundation_icons';

Sass: /resources/assets/sass/foudation_icons.scss

@import "foundation_icons_settings";

/* font-face */
@include face;

/* icons */
@include i-class(
  ".#{$classPrefix}address-book:before, .#{$classPrefix}alert:before, .#{$classPrefix}align-center:before, .#{$classPrefix}align-justify:before, .#{$classPrefix}align-left:before, .#{$classPrefix}align-right:before, .#{$classPrefix}anchor:before, .#{$classPrefix}annotate:before, .#{$classPrefix}archive:before, .#{$classPrefix}arrow-down:before, .#{$classPrefix}arrow-left:before, .#{$classPrefix}arrow-right:before, .#{$classPrefix}arrow-up:before, .#{$classPrefix}arrows-compress:before, .#{$classPrefix}arrows-expand:before, .#{$classPrefix}arrows-in:before, .#{$classPrefix}arrows-out:before, .#{$classPrefix}asl:before, .#{$classPrefix}asterisk:before, .#{$classPrefix}at-sign:before, .#{$classPrefix}background-color:before, .#{$classPrefix}battery-empty:before, .#{$classPrefix}battery-full:before, .#{$classPrefix}battery-half:before, .#{$classPrefix}bitcoin-circle:before, .#{$classPrefix}bitcoin:before, .#{$classPrefix}blind:before, .#{$classPrefix}bluetooth:before, .#{$classPrefix}bold:before, .#{$classPrefix}book-bookmark:before, .#{$classPrefix}book:before, .#{$classPrefix}bookmark:before, .#{$classPrefix}braille:before, .#{$classPrefix}burst-new:before, .#{$classPrefix}burst-sale:before, .#{$classPrefix}burst:before, .#{$classPrefix}calendar:before, .#{$classPrefix}camera:before, .#{$classPrefix}check:before, .#{$classPrefix}checkbox:before, .#{$classPrefix}clipboard-notes:before, .#{$classPrefix}clipboard-pencil:before, .#{$classPrefix}clipboard:before, .#{$classPrefix}clock:before, .#{$classPrefix}closed-caption:before, .#{$classPrefix}cloud:before, .#{$classPrefix}comment-minus:before, .#{$classPrefix}comment-quotes:before, .#{$classPrefix}comment-video:before, .#{$classPrefix}comment:before, .#{$classPrefix}comments:before, .#{$classPrefix}compass:before, .#{$classPrefix}contrast:before, .#{$classPrefix}credit-card:before, .#{$classPrefix}crop:before, .#{$classPrefix}crown:before, .#{$classPrefix}css3:before, .#{$classPrefix}database:before, .#{$classPrefix}die-five:before, .#{$classPrefix}die-four:before, .#{$classPrefix}die-one:before, .#{$classPrefix}die-six:before, .#{$classPrefix}die-three:before, .#{$classPrefix}die-two:before, .#{$classPrefix}dislike:before, .#{$classPrefix}dollar-bill:before, .#{$classPrefix}dollar:before, .#{$classPrefix}download:before, .#{$classPrefix}eject:before, .#{$classPrefix}elevator:before, .#{$classPrefix}euro:before, .#{$classPrefix}eye:before, .#{$classPrefix}fast-forward:before, .#{$classPrefix}female-symbol:before, .#{$classPrefix}female:before, .#{$classPrefix}filter:before, .#{$classPrefix}first-aid:before, .#{$classPrefix}flag:before, .#{$classPrefix}folder-add:before, .#{$classPrefix}folder-lock:before, .#{$classPrefix}folder:before, .#{$classPrefix}foot:before, .#{$classPrefix}foundation:before, .#{$classPrefix}graph-bar:before, .#{$classPrefix}graph-horizontal:before, .#{$classPrefix}graph-pie:before, .#{$classPrefix}graph-trend:before, .#{$classPrefix}guide-dog:before, .#{$classPrefix}hearing-aid:before, .#{$classPrefix}heart:before, .#{$classPrefix}home:before, .#{$classPrefix}html5:before, .#{$classPrefix}indent-less:before, .#{$classPrefix}indent-more:before, .#{$classPrefix}info:before, .#{$classPrefix}italic:before, .#{$classPrefix}key:before, .#{$classPrefix}laptop:before, .#{$classPrefix}layout:before, .#{$classPrefix}lightbulb:before, .#{$classPrefix}like:before, .#{$classPrefix}link:before, .#{$classPrefix}list-bullet:before, .#{$classPrefix}list-number:before, .#{$classPrefix}list-thumbnails:before, .#{$classPrefix}list:before, .#{$classPrefix}lock:before, .#{$classPrefix}loop:before, .#{$classPrefix}magnifying-glass:before, .#{$classPrefix}mail:before, .#{$classPrefix}male-female:before, .#{$classPrefix}male-symbol:before, .#{$classPrefix}male:before, .#{$classPrefix}map:before, .#{$classPrefix}marker:before, .#{$classPrefix}megaphone:before, .#{$classPrefix}microphone:before, .#{$classPrefix}minus-circle:before, .#{$classPrefix}minus:before, .#{$classPrefix}mobile-signal:before, .#{$classPrefix}mobile:before, .#{$classPrefix}monitor:before, .#{$classPrefix}mountains:before, .#{$classPrefix}music:before, .#{$classPrefix}next:before, .#{$classPrefix}no-dogs:before, .#{$classPrefix}no-smoking:before, .#{$classPrefix}page-add:before, .#{$classPrefix}page-copy:before, .#{$classPrefix}page-csv:before, .#{$classPrefix}page-delete:before, .#{$classPrefix}page-doc:before, .#{$classPrefix}page-edit:before, .#{$classPrefix}page-export-csv:before, .#{$classPrefix}page-export-doc:before, .#{$classPrefix}page-export-pdf:before, .#{$classPrefix}page-export:before, .#{$classPrefix}page-filled:before, .#{$classPrefix}page-multiple:before, .#{$classPrefix}page-pdf:before, .#{$classPrefix}page-remove:before, .#{$classPrefix}page-search:before, .#{$classPrefix}page:before, .#{$classPrefix}paint-bucket:before, .#{$classPrefix}paperclip:before, .#{$classPrefix}pause:before, .#{$classPrefix}paw:before, .#{$classPrefix}paypal:before, .#{$classPrefix}pencil:before, .#{$classPrefix}photo:before, .#{$classPrefix}play-circle:before, .#{$classPrefix}play-video:before, .#{$classPrefix}play:before, .#{$classPrefix}plus:before, .#{$classPrefix}pound:before, .#{$classPrefix}power:before, .#{$classPrefix}previous:before, .#{$classPrefix}price-tag:before, .#{$classPrefix}pricetag-multiple:before, .#{$classPrefix}print:before, .#{$classPrefix}prohibited:before, .#{$classPrefix}projection-screen:before, .#{$classPrefix}puzzle:before, .#{$classPrefix}quote:before, .#{$classPrefix}record:before, .#{$classPrefix}refresh:before, .#{$classPrefix}results-demographics:before, .#{$classPrefix}results:before, .#{$classPrefix}rewind-ten:before, .#{$classPrefix}rewind:before, .#{$classPrefix}rss:before, .#{$classPrefix}safety-cone:before, .#{$classPrefix}save:before, .#{$classPrefix}share:before, .#{$classPrefix}sheriff-badge:before, .#{$classPrefix}shield:before, .#{$classPrefix}shopping-bag:before, .#{$classPrefix}shopping-cart:before, .#{$classPrefix}shuffle:before, .#{$classPrefix}skull:before, .#{$classPrefix}social-500px:before, .#{$classPrefix}social-adobe:before, .#{$classPrefix}social-amazon:before, .#{$classPrefix}social-android:before, .#{$classPrefix}social-apple:before, .#{$classPrefix}social-behance:before, .#{$classPrefix}social-bing:before, .#{$classPrefix}social-blogger:before, .#{$classPrefix}social-delicious:before, .#{$classPrefix}social-designer-news:before, .#{$classPrefix}social-deviant-art:before, .#{$classPrefix}social-digg:before, .#{$classPrefix}social-dribbble:before, .#{$classPrefix}social-drive:before, .#{$classPrefix}social-dropbox:before, .#{$classPrefix}social-evernote:before, .#{$classPrefix}social-facebook:before, .#{$classPrefix}social-flickr:before, .#{$classPrefix}social-forrst:before, .#{$classPrefix}social-foursquare:before, .#{$classPrefix}social-game-center:before, .#{$classPrefix}social-github:before, .#{$classPrefix}social-google-plus:before, .#{$classPrefix}social-hacker-news:before, .#{$classPrefix}social-hi5:before, .#{$classPrefix}social-instagram:before, .#{$classPrefix}social-joomla:before, .#{$classPrefix}social-lastfm:before, .#{$classPrefix}social-linkedin:before, .#{$classPrefix}social-medium:before, .#{$classPrefix}social-myspace:before, .#{$classPrefix}social-orkut:before, .#{$classPrefix}social-path:before, .#{$classPrefix}social-picasa:before, .#{$classPrefix}social-pinterest:before, .#{$classPrefix}social-rdio:before, .#{$classPrefix}social-reddit:before, .#{$classPrefix}social-skillshare:before, .#{$classPrefix}social-skype:before, .#{$classPrefix}social-smashing-mag:before, .#{$classPrefix}social-snapchat:before, .#{$classPrefix}social-spotify:before, .#{$classPrefix}social-squidoo:before, .#{$classPrefix}social-stack-overflow:before, .#{$classPrefix}social-steam:before, .#{$classPrefix}social-stumbleupon:before, .#{$classPrefix}social-treehouse:before, .#{$classPrefix}social-tumblr:before, .#{$classPrefix}social-twitter:before, .#{$classPrefix}social-vimeo:before, .#{$classPrefix}social-windows:before, .#{$classPrefix}social-xbox:before, .#{$classPrefix}social-yahoo:before, .#{$classPrefix}social-yelp:before, .#{$classPrefix}social-youtube:before, .#{$classPrefix}social-zerply:before, .#{$classPrefix}social-zurb:before, .#{$classPrefix}sound:before, .#{$classPrefix}star:before, .#{$classPrefix}stop:before, .#{$classPrefix}strikethrough:before, .#{$classPrefix}subscript:before, .#{$classPrefix}superscript:before, .#{$classPrefix}tablet-landscape:before, .#{$classPrefix}tablet-portrait:before, .#{$classPrefix}target-two:before, .#{$classPrefix}target:before, .#{$classPrefix}telephone-accessible:before, .#{$classPrefix}telephone:before, .#{$classPrefix}text-color:before, .#{$classPrefix}thumbnails:before, .#{$classPrefix}ticket:before, .#{$classPrefix}torso-business:before, .#{$classPrefix}torso-female:before, .#{$classPrefix}torso:before, .#{$classPrefix}torsos-all-female:before, .#{$classPrefix}torsos-all:before, .#{$classPrefix}torsos-female-male:before, .#{$classPrefix}torsos-male-female:before, .#{$classPrefix}torsos:before, .#{$classPrefix}trash:before, .#{$classPrefix}trees:before, .#{$classPrefix}trophy:before, .#{$classPrefix}underline:before, .#{$classPrefix}universal-access:before, .#{$classPrefix}unlink:before, .#{$classPrefix}unlock:before, .#{$classPrefix}upload-cloud:before, .#{$classPrefix}upload:before, .#{$classPrefix}usb:before, .#{$classPrefix}video:before, .#{$classPrefix}volume-none:before, .#{$classPrefix}volume-strike:before, .#{$classPrefix}volume:before, .#{$classPrefix}web:before, .#{$classPrefix}wheelchair:before, .#{$classPrefix}widget:before, .#{$classPrefix}wrench:before, .#{$classPrefix}x-circle:before, .#{$classPrefix}x:before, .#{$classPrefix}yen:before, .#{$classPrefix}zoom-in:before, .#{$classPrefix}zoom-out:before"
);

@include i-content(address-book,          "100");
@include i-content(alert,                 "101");
@include i-content(align-center,          "102");
@include i-content(align-justify,         "103");
@include i-content(align-left,            "104");
@include i-content(align-right,           "105");
@include i-content(anchor,                "106");
@include i-content(annotate,              "107");
@include i-content(archive,               "108");
@include i-content(arrow-down,            "109");
@include i-content(arrow-left,            "10a");
@include i-content(arrow-right,           "10b");
@include i-content(arrow-up,              "10c");
@include i-content(arrows-compress,       "10d");
@include i-content(arrows-expand,         "10e");
@include i-content(arrows-in,             "10f");
@include i-content(arrows-out,            "110");
@include i-content(asl,                   "111");
@include i-content(asterisk,              "112");
@include i-content(at-sign,               "113");
@include i-content(background-color,      "114");
@include i-content(battery-empty,         "115");
@include i-content(battery-full,          "116");
@include i-content(battery-half,          "117");
@include i-content(bitcoin-circle,        "118");
@include i-content(bitcoin,               "119");
@include i-content(blind,                 "11a");
@include i-content(bluetooth,             "11b");
@include i-content(bold,                  "11c");
@include i-content(book-bookmark,         "11d");
@include i-content(book,                  "11e");
@include i-content(bookmark,              "11f");
@include i-content(braille,               "120");
@include i-content(burst-new,             "121");
@include i-content(burst-sale,            "122");
@include i-content(burst,                 "123");
@include i-content(calendar,              "124");
@include i-content(camera,                "125");
@include i-content(check,                 "126");
@include i-content(checkbox,              "127");
@include i-content(clipboard-notes,       "128");
@include i-content(clipboard-pencil,      "129");
@include i-content(clipboard,             "12a");
@include i-content(clock,                 "12b");
@include i-content(closed-caption,        "12c");
@include i-content(cloud,                 "12d");
@include i-content(comment-minus,         "12e");
@include i-content(comment-quotes,        "12f");
@include i-content(comment-video,         "130");
@include i-content(comment,               "131");
@include i-content(comments,              "132");
@include i-content(compass,               "133");
@include i-content(contrast,              "134");
@include i-content(credit-card,           "135");
@include i-content(crop,                  "136");
@include i-content(crown,                 "137");
@include i-content(css3,                  "138");
@include i-content(database,              "139");
@include i-content(die-five,              "13a");
@include i-content(die-four,              "13b");
@include i-content(die-one,               "13c");
@include i-content(die-six,               "13d");
@include i-content(die-three,             "13e");
@include i-content(die-two,               "13f");
@include i-content(dislike,               "140");
@include i-content(dollar-bill,           "141");
@include i-content(dollar,                "142");
@include i-content(download,              "143");
@include i-content(eject,                 "144");
@include i-content(elevator,              "145");
@include i-content(euro,                  "146");
@include i-content(eye,                   "147");
@include i-content(fast-forward,          "148");
@include i-content(female-symbol,         "149");
@include i-content(female,                "14a");
@include i-content(filter,                "14b");
@include i-content(first-aid,             "14c");
@include i-content(flag,                  "14d");
@include i-content(folder-add,            "14e");
@include i-content(folder-lock,           "14f");
@include i-content(folder,                "150");
@include i-content(foot,                  "151");
@include i-content(foundation,            "152");
@include i-content(graph-bar,             "153");
@include i-content(graph-horizontal,      "154");
@include i-content(graph-pie,             "155");
@include i-content(graph-trend,           "156");
@include i-content(guide-dog,             "157");
@include i-content(hearing-aid,           "158");
@include i-content(heart,                 "159");
@include i-content(home,                  "15a");
@include i-content(html5,                 "15b");
@include i-content(indent-less,           "15c");
@include i-content(indent-more,           "15d");
@include i-content(info,                  "15e");
@include i-content(italic,                "15f");
@include i-content(key,                   "160");
@include i-content(laptop,                "161");
@include i-content(layout,                "162");
@include i-content(lightbulb,             "163");
@include i-content(like,                  "164");
@include i-content(link,                  "165");
@include i-content(list-bullet,           "166");
@include i-content(list-number,           "167");
@include i-content(list-thumbnails,       "168");
@include i-content(list,                  "169");
@include i-content(lock,                  "16a");
@include i-content(loop,                  "16b");
@include i-content(magnifying-glass,      "16c");
@include i-content(mail,                  "16d");
@include i-content(male-female,           "16e");
@include i-content(male-symbol,           "16f");
@include i-content(male,                  "170");
@include i-content(map,                   "171");
@include i-content(marker,                "172");
@include i-content(megaphone,             "173");
@include i-content(microphone,            "174");
@include i-content(minus-circle,          "175");
@include i-content(minus,                 "176");
@include i-content(mobile-signal,         "177");
@include i-content(mobile,                "178");
@include i-content(monitor,               "179");
@include i-content(mountains,             "17a");
@include i-content(music,                 "17b");
@include i-content(next,                  "17c");
@include i-content(no-dogs,               "17d");
@include i-content(no-smoking,            "17e");
@include i-content(page-add,              "17f");
@include i-content(page-copy,             "180");
@include i-content(page-csv,              "181");
@include i-content(page-delete,           "182");
@include i-content(page-doc,              "183");
@include i-content(page-edit,             "184");
@include i-content(page-export-csv,       "185");
@include i-content(page-export-doc,       "186");
@include i-content(page-export-pdf,       "187");
@include i-content(page-export,           "188");
@include i-content(page-filled,           "189");
@include i-content(page-multiple,         "18a");
@include i-content(page-pdf,              "18b");
@include i-content(page-remove,           "18c");
@include i-content(page-search,           "18d");
@include i-content(page,                  "18e");
@include i-content(paint-bucket,          "18f");
@include i-content(paperclip,             "190");
@include i-content(pause,                 "191");
@include i-content(paw,                   "192");
@include i-content(paypal,                "193");
@include i-content(pencil,                "194");
@include i-content(photo,                 "195");
@include i-content(play-circle,           "196");
@include i-content(play-video,            "197");
@include i-content(play,                  "198");
@include i-content(plus,                  "199");
@include i-content(pound,                 "19a");
@include i-content(power,                 "19b");
@include i-content(previous,              "19c");
@include i-content(price-tag,             "19d");
@include i-content(pricetag-multiple,     "19e");
@include i-content(print,                 "19f");
@include i-content(prohibited,            "1a0");
@include i-content(projection-screen,     "1a1");
@include i-content(puzzle,                "1a2");
@include i-content(quote,                 "1a3");
@include i-content(record,                "1a4");
@include i-content(refresh,               "1a5");
@include i-content(results-demographics,  "1a6");
@include i-content(results,               "1a7");
@include i-content(rewind-ten,            "1a8");
@include i-content(rewind,                "1a9");
@include i-content(rss,                   "1aa");
@include i-content(safety-cone,           "1ab");
@include i-content(save,                  "1ac");
@include i-content(share,                 "1ad");
@include i-content(sheriff-badge,         "1ae");
@include i-content(shield,                "1af");
@include i-content(shopping-bag,          "1b0");
@include i-content(shopping-cart,         "1b1");
@include i-content(shuffle,               "1b2");
@include i-content(skull,                 "1b3");
@include i-content(social-500px,          "1b4");
@include i-content(social-adobe,          "1b5");
@include i-content(social-amazon,         "1b6");
@include i-content(social-android,        "1b7");
@include i-content(social-apple,          "1b8");
@include i-content(social-behance,        "1b9");
@include i-content(social-bing,           "1ba");
@include i-content(social-blogger,        "1bb");
@include i-content(social-delicious,      "1bc");
@include i-content(social-designer-news,  "1bd");
@include i-content(social-deviant-art,    "1be");
@include i-content(social-digg,           "1bf");
@include i-content(social-dribbble,       "1c0");
@include i-content(social-drive,          "1c1");
@include i-content(social-dropbox,        "1c2");
@include i-content(social-evernote,       "1c3");
@include i-content(social-facebook,       "1c4");
@include i-content(social-flickr,         "1c5");
@include i-content(social-forrst,         "1c6");
@include i-content(social-foursquare,     "1c7");
@include i-content(social-game-center,    "1c8");
@include i-content(social-github,         "1c9");
@include i-content(social-google-plus,    "1ca");
@include i-content(social-hacker-news,    "1cb");
@include i-content(social-hi5,            "1cc");
@include i-content(social-instagram,      "1cd");
@include i-content(social-joomla,         "1ce");
@include i-content(social-lastfm,         "1cf");
@include i-content(social-linkedin,       "1d0");
@include i-content(social-medium,         "1d1");
@include i-content(social-myspace,        "1d2");
@include i-content(social-orkut,          "1d3");
@include i-content(social-path,           "1d4");
@include i-content(social-picasa,         "1d5");
@include i-content(social-pinterest,      "1d6");
@include i-content(social-rdio,           "1d7");
@include i-content(social-reddit,         "1d8");
@include i-content(social-skillshare,     "1d9");
@include i-content(social-skype,          "1da");
@include i-content(social-smashing-mag,   "1db");
@include i-content(social-snapchat,       "1dc");
@include i-content(social-spotify,        "1dd");
@include i-content(social-squidoo,        "1de");
@include i-content(social-stack-overflow, "1df");
@include i-content(social-steam,          "1e0");
@include i-content(social-stumbleupon,    "1e1");
@include i-content(social-treehouse,      "1e2");
@include i-content(social-tumblr,         "1e3");
@include i-content(social-twitter,        "1e4");
@include i-content(social-vimeo,          "1e5");
@include i-content(social-windows,        "1e6");
@include i-content(social-xbox,           "1e7");
@include i-content(social-yahoo,          "1e8");
@include i-content(social-yelp,           "1e9");
@include i-content(social-youtube,        "1ea");
@include i-content(social-zerply,         "1eb");
@include i-content(social-zurb,           "1ec");
@include i-content(sound,                 "1ed");
@include i-content(star,                  "1ee");
@include i-content(stop,                  "1ef");
@include i-content(strikethrough,         "1f0");
@include i-content(subscript,             "1f1");
@include i-content(superscript,           "1f2");
@include i-content(tablet-landscape,      "1f3");
@include i-content(tablet-portrait,       "1f4");
@include i-content(target-two,            "1f5");
@include i-content(target,                "1f6");
@include i-content(telephone-accessible,  "1f7");
@include i-content(telephone,             "1f8");
@include i-content(text-color,            "1f9");
@include i-content(thumbnails,            "1fa");
@include i-content(ticket,                "1fb");
@include i-content(torso-business,        "1fc");
@include i-content(torso-female,          "1fd");
@include i-content(torso,                 "1fe");
@include i-content(torsos-all-female,     "1ff");
@include i-content(torsos-all,            "200");
@include i-content(torsos-female-male,    "201");
@include i-content(torsos-male-female,    "202");
@include i-content(torsos,                "203");
@include i-content(trash,                 "204");
@include i-content(trees,                 "205");
@include i-content(trophy,                "206");
@include i-content(underline,             "207");
@include i-content(universal-access,      "208");
@include i-content(unlink,                "209");
@include i-content(unlock,                "20a");
@include i-content(upload-cloud,          "20b");
@include i-content(upload,                "20c");
@include i-content(usb,                   "20d");
@include i-content(video,                 "20e");
@include i-content(volume-none,           "20f");
@include i-content(volume-strike,         "210");
@include i-content(volume,                "211");
@include i-content(web,                   "212");
@include i-content(wheelchair,            "213");
@include i-content(widget,                "214");
@include i-content(wrench,                "215");
@include i-content(x-circle,              "216");
@include i-content(x,                     "217");
@include i-content(yen,                   "218");
@include i-content(zoom-in,               "219");
@include i-content(zoom-out,              "21a");

Sass: /resources/assets/sass/foundation_icons_settings.scss

$fontFileName: "../fonts/foundation-icons";
$fontName: "foundation-icons";
$classPrefix: "fi-";

@mixin face {
  @font-face {
    font-family: $fontName;
    src: url('#{$fontFileName}.eot');
    src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'),
         url('#{$fontFileName}.woff') format('woff'),
         url('#{$fontFileName}.ttf') format('truetype'),
         url('#{$fontFileName}.svg##{$fontName}') format('svg');
    font-weight: normal;
    font-style: normal;
  }
}

@mixin i-class($names...) {
  #{$names} {
    font-family: "foundation-icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    text-decoration: inherit;
  }
}

@mixin i-content($name, $pua) {
  .#{$classPrefix}#{$name}:before {
    content: "\f#{$pua}";
  }
}

Html: /resources/views/welcome.blade.php

<!DOCTYPE html>
<html>
    <head>
        <title>Laravel/Foundation</title>

        <link rel="stylesheet" type="text/css" href="{{ elixir('css/foundation.css') }}" />

    </head>
    <body>
        <ul class="accordion" data-accordion role="tablist">
            <li class="accordion-item is-active">
                <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                    Panel 1. Lorem ipsum dolor
                </div>
            </li>
            <li class="accordion-item">
                <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                    Panel 2. Lorem ipsum dolor
                </div>
            </li>
            <li class="accordion-item">
                <!-- The tab title needs role="tab", an href, a unique ID, and aria-controls. -->
                <a href="#panel1d" role="tab" class="accordion-title" id="panel1d-heading" aria-controls="panel1d">Accordion 1</a>
                <!-- The content pane needs an ID that matches the above href, role="tabpanel", data-tab-content, and aria-labelledby. -->
                <div id="panel1d" class="accordion-content" role="tabpanel" data-tab-content aria-labelledby="panel1d-heading">
                    Panel 3. Lorem ipsum dolor
                </div>
            </li>
        </ul>
        <hr>
        <span class="secondary badge">2</span>
        <span class="success badge">3</span>
        <span class="alert badge">A</span>
        <span class="warning badge">B</span>
        <hr>
        <div class="callout">
            <h5>This is a callout.</h5>
            <p>It has an easy to override visual style, and is appropriately subdued.</p>
            <a href="#">It's dangerous to go alone, take this.</a>
        </div>
        <div class="callout secondary">
            <h5>This is a secondary callout</h5>
            <p>It has an easy to override visual style, and is appropriately subdued.</p>
            <a href="#">It's dangerous to go alone, take this.</a>
        </div>
        <hr>
        <!-- Anchors (links) -->
        <a href="about.html" class="button">Learn More</a>
        <a href="#features" class="button">View All Features</a>

        <!-- Buttons (actions) -->
        <button type="button" class="success button">Save</button>
        <button type="button" class="alert button">Delete</button>

        <a class="tiny button" href="#">So Tiny</a>
        <a class="small button" href="#">So Small</a>
        <a class="large button" href="#">So Large</a>
        <a class="expanded button" href="#">Such Expand</a>

        <div class="button-group">
            <a class="button">One</a>
            <a class="button">Two</a>
            <a class="button">Three</a>
        </div>
    </body>
</html>

That should do it I think.

26 Dec
2 years ago

schir1964 left a reply on L5.1 Roles And Permissions Call To Undefined Method HasRole()

I think I found your problem. I actually implemented your solution because I was trying to do the same thing but you did it so much better! (8^D)

In your AuthServiceProvider class abov e (line 30): return $user->hasPermission($permission); change to return $user->hasRole($permission->roles());

That worked for me. Thanks for all you hard work.