PHP code example of vizra / evals-ui

1. Go to this page and download the library: Download vizra/evals-ui 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/ */

    

vizra / evals-ui example snippets


// e.g. in AppServiceProvider::boot()
Gate::define('viewEvalsDashboard', fn ($user) => $user->isAdmin());

// or take full control:
\Vizra\EvalsUi\EvalsUi::auth(fn ($request) => ...);

php artisan queue:work

php artisan vendor:publish --tag=evals-ui-config

php artisan vendor:publish --tag=evals-ui-assets