mopo922 / LaravelTreats by mopo922

A collection of goodies for Laravel 5.
311,522
107
7
Package Data
Maintainer Username: mopo922
Package Create Date: 2016-10-26
Package Last Update: 2022-03-28
Home Page:
Language: Less
License: MIT
Last Refreshed: 2024-05-15 15:03:04
Package Statistics
Total Downloads: 311,522
Monthly Downloads: 4,373
Daily Downloads: 226
Total Stars: 107
Total Watchers: 7
Total Forks: 30
Total Open Issues: 10

LaravelTreats

A collection of goodies for Laravel 5.

Installation

Add this to your project's composer.json file:

    // ...
    "require": {
        // ...
        "mopo922/laravel-treats": "^1.0",
        // ...
    },
    // ...

Then run composer update. That's it!

Components

Service Provider

The LaravelTreatsServiceProvider is not required for all LaravelTreats features, but does provide an interface for some benefits like the ready-made view layout.

Simply add the LaravelTreatsServiceProvider to the providers array in config/app.php:

'providers' => [
    // Other Service Providers

    LaravelTreats\LaravelTreatsServiceProvider::class,
],

If you plan to take advantage of the default view layout, publish the necessary files to your app and resources directories by running the following command from your project's root directory:

php artisan vendor:publish