PHP code example of laravel-bricks / flux

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

    

laravel-bricks / flux example snippets

 bash
php artisan vendor:publish  --provider="LaravelBricks\Flux\FluxServiceProvider"
 php
$table->string('status',32)->nullable();
 php
    <x-flux-status :flowable="$post" />
 php
    $post->title = $request->post('title');
    $post->body = $request->post('body');
    $post->save();
            
    Capacitor::fluxing($post, $request->post('status'));
 php
    <livewire:flux-status :flowable="$post" />