PHP code example of grazulex / laravel-autobuilder

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

    

grazulex / laravel-autobuilder example snippets


return [
    'routes' => [
        'prefix' => 'autobuilder',
        'middleware' => ['web', 'auth'],
    ],
    'bricks' => [
        'paths' => [app_path('AutoBuilder/Bricks')],
        'namespace' => 'App\\AutoBuilder\\Bricks',
    ],
];

namespace App\AutoBuilder\Bricks;

use Grazulex\AutoBuilder\Bricks\Action;
use Grazulex\AutoBuilder\Flow\FlowContext;

class SendSlackMessage extends Action
{
    public function name(): string
    {
        return 'Send Slack Message';
    }

    public function fields(): array
    {
        return [
            Text::make('channel')->label('Channel')->
bash
php artisan vendor:publish --tag=autobuilder-assets
php artisan vendor:publish --tag=autobuilder-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=autobuilder-config