PHPackages                             yaza/artisan-blade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. yaza/artisan-blade

ActiveLibrary[Templating &amp; Views](/categories/templating)

yaza/artisan-blade
==================

You can make blade using artisan command

V1.0.0(3y ago)3227MITPHPPHP ^8.1

Since Jul 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yaza-putu/artisan-blade)[ Packagist](https://packagist.org/packages/yaza/artisan-blade)[ Docs](https://github.com/yaza/artisan-blade)[ RSS](/packages/yaza-artisan-blade/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (3)Used By (0)

Make blade file laravel with artisan command
============================================

[](#make-blade-file-laravel-with-artisan-command)

[![artisan command](https://camo.githubusercontent.com/ced7fc8370d25825aee1d0f48d95e00ae09ad0d9df65329b1d78b1aa3be1c55b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f646b303035337a62652f696d6167652f75706c6f61642f76313635373437313630362f6172746973616e2d626c6164652f61727469636c656f63772d353763356435363265396161615f737863336a6a2e706e67)](https://camo.githubusercontent.com/ced7fc8370d25825aee1d0f48d95e00ae09ad0d9df65329b1d78b1aa3be1c55b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f646b303035337a62652f696d6167652f75706c6f61642f76313635373437313630362f6172746973616e2d626c6164652f61727469636c656f63772d353763356435363265396161615f737863336a6a2e706e67)

---

[![Latest Version on Packagist](https://camo.githubusercontent.com/87a2400af960e548ed0015d4655d790832a7312d24a3c3b0be69ee3538f5935b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79617a612f6172746973616e2d626c6164652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yaza/artisan-blade)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b70505993f88e9e85e955b09cb119d3ccc581e4f349ae39fdad45f424c6de157/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f79617a612f6172746973616e2d626c6164652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/yaza-putu/artisan-blade/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6f2479edd347b1083c76e8357c81b437be06a29aefc2edd401b2407cc3967237/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f79617a612f6172746973616e2d626c6164652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/yaza-putu/artisan-blade/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d07d9bd6463d4ab216d8f00d8a2d96369920c2d383120ccba460d7ec1371a52e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79617a612f6172746973616e2d626c6164652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yaza/artisan-blade)

Requirement
-----------

[](#requirement)

- Laravel 9.\*
- PHP 8.1

Description
-----------

[](#description)

This package can make blade file laravel with artisan command, and setup a template html with stub file

Installation
------------

[](#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
-----

[](#usage)

### artisan command

[](#artisan-command)

1. Create file blade

```
php artisan make:blade blade_name
```

2. Create file blade with directory

```
php artisan make:blade path/blade_name
```

3. 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

[](#make-and-customize-template-stub-file)

1. you need publish this config with

```
php artisan vendor:publish --tag="artisan-blade-config"
```

2. setting config path

```
