PHP code example of charsen / moo-feedback

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

    

charsen / moo-feedback example snippets


// config/moo-feedback.php
'public' => [
    'enabled'          => true,
    '

// app/Moo/Feedback/AppFeedbackTypes.php
public function types(): array
{
    return [
        'SALES'   => ['label' => '销售咨询', '

// bootstrap/app.php -> withMiddleware()
$packageAdminMiddleware = [
    'jwt.assign.guard:admin',
    'jwt.guard.auth:admin',
    'jwt.auth.refresh',
    'throttle:admin',
    'set.locale',
    \Illuminate\Routing\Middleware\SubstituteBindings::class,
];
$middleware->appendToGroup('moo-feedback', $packageAdminMiddleware);

// config/moo-feedback.php
'admin' => ['prefix' => 'api/admin', 'name' => 'admin.', 'middleware' => 'moo-feedback'],
bash
php artisan vendor:publish --tag=moo-feedback-config