Download the PHP package fredtux/artisan-view without Composer
On this page you can find all versions of the php package fredtux/artisan-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package artisan-view
DISCLAIMER
This is a forked version of https://github.com/svenluijten/artisan-view which adds the ability to generate CRUD views based on a model using bootstrap
Artisan View
[![Build Status][ico-build]][link-build]
This package adds a handful of view-related commands to Artisan in your Laravel project. Generate blade files that extend other views, scaffold out sections to add to those templates, and more. All from the command line we know and love!
Index
- Installation
- Downloading
- Registering the service provider
- Usage
- Creating views
- Extending and sections
- REST resources
- Scrapping views
- Mix and match
- Contributing
- License
Installation
You'll have to follow a couple of simple steps to install this package.
Downloading
Via composer:
Registering the service provider
If you're using Laravel 5.5 or above, you can skip this step. The service provider will have already been registered thanks to auto-discovery.
Otherwise, register fredtux\ArtisanView\ServiceProvider::class
manually in your AppServiceProvider
's
register
method:
Usage
If you now run php artisan
you will see two new commands in the list:
make:view
scrap:view
Creating views
Extending and sections
REST resources
Generate views (with bootstrap only)
Scrapping views
This will ask you if you're sure. To skip this question, pass the --force
flag:
Scrapping a REST resource
This will remove the views products.index
, products.show
, products.create
, and products.edit
. If the directory
products/
is empty after doing that, it will also be deleted.
You can scrap part of a resource by adding --verb
flags:
Mix and match
Of course, all the options work well together like you'd expect. So the following command...
... will put the following contents in products/index.blade.php
, products/edit.blade.php
, products/create.blade.php
,
and products/show.blade.php
:
Contributing
All contributions (in the form on pull requests, issues and feature-requests) are welcome. See the contributors page for all contributors.
License
fredtux/artisan-view
is licenced under the MIT License (MIT). Please see the
license file for more information.