PHP code example of lanciweb / laravel-make-view

1. Go to this page and download the library: Download lanciweb/laravel-make-view library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lanciweb / laravel-make-view example snippets

bash
php artisan make:view home
# creates 'home.blade.php' in the 'resources/views' folder.
bash
php artisan make:view backoffice.admin.home
# creates 'home.blade.php' in the 'resources/views/backoffice/admin' folder. 
# All folders are created if they do not exist yet.
bash
php artisan make:view posts --crud
# creates 'index.blade.php', 'show.blade.php`, `create.blade.php' and `edit.blade.php'
# in the 'resources/views/posts' folder.
bash
php artisan make:view admin.posts -c
# creates 'index.blade.php', 'show.blade.php`, `create.blade.php' and `edit.blade.php'
# in the 'resources/views/admin/posts' folder.