ezhasyafaat / laravel-view
Package for create view laravel.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 3
Open Issues: 0
Type:package
Requires
- illuminate/support: ^7.0|^8.0|^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- orchestra/testbench: ^6.0
- phpstan/phpstan: ^1.9
README
Install
composer require ezhasyafaat/laravel-view
Usage
$ php artisan vendor:publish --provider="Ezhasyafaat\LaravelView\LaravelViewServiceProvider"
in file config/laravel-view.php you can customize your default extends and section for your blade view
<?php /** Config file of laravel view */ return [ /** Extends of your view file */ 'extends' => 'layouts.app', /** Section of your view file */ 'section' => [ 'content' => 'content', ], ];
$ php artisan make:view index
this command will be generate file index.blade.php in folder resources/views
$ php artisan make:view Product/index
this command will be generate file index.blade.php in folder resources/views/Product
$ php artisan make:view Product --resource
this command will be generate a resource views
- Product/index.blade.php
- Product/create.blade.php
- Product/show.blade.php
- Product/edit.blade.php
Testing
Run the tests with:
$ composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
Security
If you discover any security-related issues, please email muhammadezhasyafaat08@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
Find me on :
- Instagram : zhaasyft
- Twitter : zhaasyft