PHP code example of pschocke / laravel-feedback-modal

1. Go to this page and download the library: Download pschocke/laravel-feedback-modal 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/ */

    

pschocke / laravel-feedback-modal example snippets


return [
    //...,
    'feedback' => [
            'type' => 'Type of feedback',
            'types' => [
                // every array key is an option in the radio group. You can customize them however you want.
                'error' => [
                    'title' => 'i found a mistake',
                    'description' => 'You found a bug that you want to report to us'
                ],
            ]
        ],
];

$feedbacks = \pschocke\FeedbackModal\AnonymousFeedback::all();
bash
php artisan vendor:publish --provider="pschocke\FeedbackModal\FeedbackModalServiceProvider" --tag="migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="pschocke\FeedbackModal\FeedbackModalServiceProvider" --tag="translations"
bash
php artisan vendor:publish --provider="pschocke\FeedbackModal\FeedbackModalServiceProvider" --tag="views"