PHP code example of amarenkov / laravel-mutable-content-daisyui

1. Go to this page and download the library: Download amarenkov/laravel-mutable-content-daisyui 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/ */

    

amarenkov / laravel-mutable-content-daisyui example snippets


use Amarenkov\MutableContentDaisyUi\MutableContentDaisyUi;

Route::middleware('auth')->prefix('settings')->group(function () {
    MutableContentDaisyUi::routes();
});

use Amarenkov\MutableContentDaisyUi\Livewire\ManageRecords;

class ManageProjects extends ManageRecords
{
    protected static string $model = Project::class;

    protected function inputs(): array
    {
        $inputs = parent::inputs();

        $inputs['status']->live();

        return $inputs;
    }
}