PHP code example of dewsign / nova-testimonials

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

    

dewsign / nova-testimonials example snippets


// default.blade.php...

@'nova-testimonials.models.category')::where(
        'name', 'Customer')->first()
    ])

// app/Testimonial.php

use Dewsign\NovaTestimonials\Testimonial as BaseTestimonial;

class Testimonial extends BaseTestimonial
{
    // Extend away!
}

//config/nova-testimonials.php

return [
    'models' => [
        'testimonial' => 'App\Testimonial',
        'category' => 'Dewsign\NovaTestimonials\TestimonialCategory',
    ],
    'resources' => [
        'testimonial' => 'App\Nova\Testimonial',
        'category' => 'Dewsign\NovaTestimonials\Nova\TestimonialCategory',
    ]
];

// config/nova-testimonials.php

    'images' => [
        'field' => 'Laravel\Nova\Fields\Image',
        'disk' => 'public',
    ],