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

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

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

eveningdesign/laravel-boiler
============================

Generate basic CRUD boilerplate

v5.5.0(8y ago)1561MITPHP

Since Aug 9Pushed 8y agoCompare

[ Source](https://github.com/eveningdesign/laravel-boiler)[ Packagist](https://packagist.org/packages/eveningdesign/laravel-boiler)[ RSS](/packages/eveningdesign-laravel-boiler/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

laravel-boiler
==============

[](#laravel-boiler)

Generate Laravel 5.x boilerplate code for basic CRUD operations.

Overview
--------

[](#overview)

Here are two things I hate doing:

- the same thing over and over, and
- using string literals all over the place.

This package generates code based off of the MySQL tables in your database. It creates the views/constants/controllers/etc that are associated with a resource and puts them in the standard locations.

You'll notice that there are very few (if any) string literals for view names, routes, controller actions, etc. That's because refactoring them is a pain. It's much easier to change the url path or route name in one place, and not have to worry about missing spots in the code. Yes, you can search and replace, but you are required to inspect the results to make sure you don't change something you didn't intend to change (or miss a typo).

Installation
------------

[](#installation)

Install in the usual composer way.

```
{
    "require-dev": [
        "eveningdesign\laravel-boiler": "~0.0";
    ]
}

```

Run composer update.

This package uses Laravel 5.5 auto-discover. If you're using 5.5, you don't have to do anything else and you'll have access to the Artisan commands.

For Laravel &lt; 5.5, add the service provider. You only need it in dev mode, so you have two options. Option one is to do an environment check in app.php, and if you're local array\_merge the provider into the providers array. Peform this setup at the top of the file before the return statement. Option two is to do the check and register the BoilerplateServiceProvider in the AppServiceProvider.

```
