hidayat/makeviewcommand

Create view in the resources/views directory

dev-master 2022-08-30 16:23 UTC

This package is auto-updated.

Last update: 2024-06-29 04:46:35 UTC


README

laravel-makeviewcommand

This package contain a new artisan command which can be used to create views using CLI (command line interface) instead of creating views manually in the views directory.

composer require hidayat/makeviewcommand

usage

run

php artisan make:view name

required parameter {name} is name of the view to be created, this will create view in the laravel views directory if view is not already there with the same name.

Also the command accept dir option which can be used to create views in the sub-directory in views like

php artisan make:view name --dir=new-dir

if the directory already exists the view will be created inside it, if not it will create directory for you and create new view file inside it.