PHP code example of dario-binalogue / inline-boolean

1. Go to this page and download the library: Download dario-binalogue/inline-boolean 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/ */

    

dario-binalogue / inline-boolean example snippets


use DarioBinalogue\InlineBoolean\InlineBoolean;

class MyResource extends Resource
{
    public function fields(Request $request)
    {
        return [
            InlineBoolean::make('Enabled')
                ->inlineOnIndex()  // Use inline field on the index page
        ];
    }
}