PHP code example of layman / laravel-architect

1. Go to this page and download the library: Download layman/laravel-architect 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/ */

    

layman / laravel-architect example snippets


'namespace' => [
    'controller' => 'App\Http\Controllers',
    'request' => 'App\Http\Requests',
    'repository' => 'App\Repositories',
    'model' => 'App\Models',
],

'route_attributes' => [
    'enabled' => true,
],

'template' => [
    'files' => [
        'controller' => [
            'path' => 'Backend',
            'name' => '{{module}}Controller',
            'stub' => 'controller.stub',
        ],
    ],
],
bash
php artisan vendor:publish --tag=architect-config
bash
php artisan vendor:publish --tag=architect-stubs
bash
php artisan architect:make User
bash
php artisan architect:make User --only=controller --only=request
bash
php artisan architect:make User --force
bash
php artisan architect:make Admin/User