Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaza-putu/artisan-blade
make blade with artisan, just call php artisan make:blade you can create file blade, create template syntax html or blade with stub file and auto insert to your blade
https://github.com/yaza-putu/artisan-blade
artisan-blade artisan-command artisan-view blade blade-template
Last synced: 11 days ago
JSON representation
make blade with artisan, just call php artisan make:blade you can create file blade, create template syntax html or blade with stub file and auto insert to your blade
- Host: GitHub
- URL: https://github.com/yaza-putu/artisan-blade
- Owner: yaza-putu
- License: mit
- Created: 2022-07-10T11:53:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-17T06:08:53.000Z (over 2 years ago)
- Last Synced: 2024-11-23T02:10:53.005Z (29 days ago)
- Topics: artisan-blade, artisan-command, artisan-view, blade, blade-template
- Language: PHP
- Homepage:
- Size: 42 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Make blade file laravel with artisan command
![artisan command](https://res.cloudinary.com/dk0053zbe/image/upload/v1657471606/artisan-blade/articleocw-57c5d562e9aaa_sxc3jj.png)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/yaza/artisan-blade.svg?style=flat-square)](https://packagist.org/packages/yaza/artisan-blade)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/yaza/artisan-blade/run-tests?label=tests)](https://github.com/yaza-putu/artisan-blade/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/yaza/artisan-blade/Check%20&%20fix%20styling?label=code%20style)](https://github.com/yaza-putu/artisan-blade/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/yaza/artisan-blade.svg?style=flat-square)](https://packagist.org/packages/yaza/artisan-blade)## 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
## InstallationYou can install the package via composer:
```bash
composer require yaza/artisan-blade --dev
```
You can publish the config file with (Optional):```bash
php artisan vendor:publish --tag="artisan-blade-config"
```## Usage
### artisan command
1. Create file blade
```php
php artisan make:blade blade_name
```
2. Create file blade with directory
```php
php artisan make:blade path/blade_name
```
3. Create file blade with template stub (note : you need publish config this package)
```php
php artisan make:blade path/blade_name --stub=stubfile
```
### Make and customize template stub file
1. you need publish this config with
```bash
php artisan vendor:publish --tag="artisan-blade-config"
```
2. setting config path
```php
"template",/*
* select default stub file
*/
"default" => "default"
];
```
3. you need create folder template in folder resources
4. create file *.stub, if you set the default stub file as default you need create default.stub in folder template
![folder structure](https://res.cloudinary.com/dk0053zbe/image/upload/v1657470743/artisan-blade/Screen_Shot_2022-07-11_at_00.15.43_kyeidz.png)## Example
1. php artisan make:blade user
![artisan blade](https://res.cloudinary.com/dk0053zbe/image/upload/v1657470752/artisan-blade/Screen_Shot_2022-07-11_at_00.18.07_uyzryc.png)
2. php artisan make:user --stub=modal
![stub modal](https://res.cloudinary.com/dk0053zbe/image/upload/v1657470752/artisan-blade/Screen_Shot_2022-07-11_at_00.18.37_aaee4x.png)
## ChangelogPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/yaza-putu/.github/blob/main/CONTRIBUTING.md) for details.
## Credits
- [yaza](https://github.com/yaza-putu)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.