PHP code example of arhx / improveme

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

    

arhx / improveme example snippets


// config/improveme.php
'controller' => \App\Http\Controllers\MyReportController::class,

use Arhx\Improveme\Http\Controllers\ReportController;

class MyReportController extends ReportController
{
    protected function rules(array $config): array
    {
        return array_merge(parent::rules($config), [
            'message' => ['

// config/improveme.php
'register_routes' => false,

// routes/web.php
Route::post('feedback', \App\Http\Controllers\MyReportController::class);
bash
php artisan vendor:publish --tag=improveme-config
bash
php artisan vendor:publish --tag=improveme-views
bash
php artisan vendor:publish --tag=improveme-assets