PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Andre Roque Filipe   laravel-dev   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: laravel-dev
Preset Laravel developer packages
Author: By
Last change:
Date: 6 years ago
Size: 1,281 bytes
 

Contents

Class file image Download

Laravel 5 Development Bundle

Install

This package is meant to be used on development only.

Require this package with composer using the following command:

composer require masnathan/laravel-dev --dev

In Laravel, instead of adding the service provider in the config/app.php file, you can add the following code to your app/Providers/AppServiceProvider.php file, within the register() method:

public function register()
{
    if ($this->app->environment() !== 'production') {
        $this->app->register(\MASNathan\LaravelDev\ServiceProvider::class);
    }
    // ...
}

This will allow your application to load the Laravel Dev on non-production environments.

To publish the configurations you can simply run the following command:

php artisan vendor:publish --provider="MASNathan\LaravelDev\ServiceProvider" --tag="config"

That's it!

Now you have the following packages up and running: