An admin interface for Laravel Backpack to easily add, edit or remove Testimonials.
- In your terminal:
$ composer require smartystudio/testimonialcrud
- If your Laravel version does not have package autodiscovery then add the service provider to your config/app.php file:
Cviebrock\EloquentSluggable\ServiceProvider::class,
SmartyStudio\TestimonialCrud\TestimonialCRUDServiceProvider::class,
- Publish & run the migration file
$ php artisan vendor:publish --provider="SmartyStudio\TestimonialCrud\TestimonialCRUDServiceProvider" # publish migration file
$ php artisan migrate # create the testimonial table
- [Optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('testimonial') }}"><i class="nav-icon la la-bullhorn"></i><span>Testimonials</span></a></li>
- Add a TestimonialComposer in App\Providers\AppServiceProvider.php:
use SmartyStudio\TestimonialCrud\app\Http\View\Composers\TestimonialComposer;
- Add the line below after the first curly brackets of boot() method in App\Providers\AppServiceProvider.php file:
view()->composer('folder_name.*', TestimonialComposer::class);
folder_name - this is the folder with the front-end template files where the testimonials should appear
- First create a testimonial
- Add title
- Add content
- Add client
- Add client url (optional)
- Upload an image
- Save the testimonial
Please see CHANGELOG for more information what has changed recently.
// TODO
Please see CONTRIBUTING for details.
If you discover any security related issues, please email us instead of using the issue tracker.
- Martin Nestorov - Web Developer @ Smarty Studio MBN Ltd.
- All Contributors
The SmartyStudio\TestimonialCRUD is open-source software licensed under the MIT license.