2017 © Pedro Peláez
 

library artisan-extended

Laravel Artisan Extended Commands

image

cleaniquecoders/artisan-extended

Laravel Artisan Extended Commands

  • Wednesday, January 4, 2017
  • by nasrulhazim.m
  • Repository
  • 1 Watchers
  • 2 Stars
  • 376 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 18 Versions
  • 1 % Grown

The README.md

Laravel Artisan Extended

Installation

composer require cleaniquecoders/artisan-extended

Register Service Provider

Open up config/app.php and register CleaniqueCoders\ArtisanExtended\ArtisanExtendedServiceProvider::class, in providers key., (*1)

Publishing Reusable Components and Layouts

Run following command to publish reusable components:, (*2)

php artisan vendor:publish --tag=artisan-extended-views

p/s: Scaffold / Resourceful views require reusable components, hence you need to publish the artisan-extended-views., (*3)

Important Notes

On production, only php artisan clear:cache available for use, other than that if your application running on local or staging, all the Artisan Extended commands available for you on artisan console., (*4)

Available Commands

Create a New Scaffold

You may create single or multiple Model at one time., (*5)

php artisan make:scaffold Post

OR, (*6)

php artisan make:scaffold Post Like Video Photo Reaction

p/s: Please take note that, for now you still need to update the model $fillable property, ModelFactory.php and model's migration scripts., (*7)

Clear All Caches

php artisan clear:cache

Clear All Caches and Serve the Application

php artisan clear:serve

In case you need to run at different port:, (*8)

php artisan clear:serve --port=9000

Create a New Route

php artisan make:route RouteName

Options available:, (*9)

  1. -a - Create a new route for API
  2. -p - Set prefix for the route
  3. -m - Set middleware for the route. Each middleware separated by comma(,)
  4. -r - Create a new resourceful controller

Create an API Route

php artisan make:route -a Post

Create an API Route with Version

php artisan make:route -a -p v1 Post

Create an API Route with Version and Middlewares

php artisan make:route -a -p v1 -m auth:auth,jwt Post

Create a new View

Generate a view extending default layout, app., (*10)

php artisan make:view welcome

Generate a new admin's dashboard with layouts of admin., (*11)

php artisan make:view admin.dashboard -p admin

Generate a resourceful view, by passing a -r option and ommit the specific blade files., (*12)

php artisan make:view users -r

This command will create a directory named users in resources/views. There will be:, (*13)

  1. index.blade.php,
  2. show.blade.php and
  3. form.blade.php.

You may want to create a resourceful controller by running php artisan make:resourceful UserController., (*14)

Create Event & Listener

php artisan make:eventlistener Post

Secure your Cookies

This command only for the new project only, as this command will change the default value of the cookie name to random string and set encrypt to true. It's recommended to change your application's cookie name and encrypt it., (*15)

php artisan secure:cookie

The Versions

04/01 2017

dev-master

9999999-dev

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

04/01 2017

v1.1.8

1.1.8.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

28/12 2016

v1.1.7

1.1.7.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

21/12 2016

v1.1.6

1.1.6.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

20/12 2016

v1.1.5

1.1.5.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

20/12 2016

v1.1.4

1.1.4.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

19/12 2016

v1.1.3

1.1.3.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

19/12 2016

v1.1.2

1.1.2.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

19/12 2016

v1.1.1

1.1.1.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

18/12 2016

v1.1.0

1.1.0.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

14/12 2016

v1.0.9

1.0.9.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

14/12 2016

v1.0.8

1.0.8.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

The Requires

 

by Nasrul Hazim

06/12 2016

v1.0.7

1.0.7.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

by Nasrul Hazim

29/11 2016

v1.0.6

1.0.6.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

by Nasrul Hazim

29/11 2016

v1.0.5

1.0.5.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

by Nasrul Hazim

24/11 2016

v1.0.4

1.0.4.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

by Nasrul Hazim

21/11 2016

v1.0.3

1.0.3.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

by Nasrul Hazim

21/11 2016

v1.0.2

1.0.2.0

Laravel Artisan Extended Commands

  Sources   Download

MIT

by Nasrul Hazim