yaza / artisan-blade
You can make blade using artisan command
V1.0.0
2022-07-10 16:49 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-17 11:19:19 UTC
README
Requirement
- Laravel 9.*
- PHP 8.1
Description
This package can make blade file laravel with artisan command, and setup a template html with stub file
Installation
You can install the package via composer:
composer require yaza/artisan-blade --dev
You can publish the config file with (Optional):
php artisan vendor:publish --tag="artisan-blade-config"
Usage
artisan command
- Create file blade
php artisan make:blade blade_name
- Create file blade with directory
php artisan make:blade path/blade_name
- Create file blade with template stub (note : you need publish config this package)
php artisan make:blade path/blade_name --stub=stubfile
Make and customize template stub file
- you need publish this config with
php artisan vendor:publish --tag="artisan-blade-config"
- setting config path
<?php return [ /* * Default location template */ "path" => "template", /* * select default stub file */ "default" => "default" ];
- you need create folder template in folder resources
- create file *.stub, if you set the default stub file as default you need create default.stub in folder template
Example
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.