PHP code example of pmochine / laravel-report
1. Go to this page and download the library: Download pmochine/laravel-report 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/ */
pmochine / laravel-report example snippets
php artisan vendor:publish --provider="Pmochine\Report\ReportServiceProvider" && php artisan migrate
php
$post->report([
'reason' => \Str::random(10),
'meta' => ['some more optional data, can be notes or something'],
], $user);
php
$report->conclusion;
php
$report->judge(); // Just a shortcut for $report->conclusion->judge
php
Report::allJudges();