A Laravel package to show testimonials trough a carousel. The contents support multi language.
davide-casiraghi/laravel-testimonials is a Laravel package for a laravel package to show testimonials trough a carousel. the contents support multi language..
It currently has 0 GitHub stars and 1 downloads on Packagist (latest version 1.0.2).
Install it with composer require davide-casiraghi/laravel-testimonials.
Discover more Laravel packages by davide-casiraghi
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel package to show testimonials trough a carousel. The contents support multi language.
You can install the package via composer:
composer require davide-casiraghi/laravel-testimonials
php artisan vendor:publish --force
php artisan migrate
npm install slick-carousel
Add this line to your resources/sass/app.scss file:
@import "~slick-carousel/slick/slick";
@import "~slick-carousel/slick/slick-theme";
@import 'vendor/laravel-testimonials/testimonials';
and then run in console:
npm run dev
Add this line to your resources/js/app.js file:
require('./vendor/laravel-testimonials/testimonials');
import 'slick-carousel';
To work the package aspect that in your user model and table you have a field called group that can have this possible values:
Just the users that have Admin and Super admin privileges can access to the routes that allow to create, edit and delete the blogs, categories and posts. Otherwise you get redirected to the homepage.
After the package is published this new routes will be available:
Accessing to this routes you can manage new testimonial groups and testimonials.
Add the replace funcion to your code in the show() funcion of the controller.
use DavideCasiraghi\LaravelTestimonials\Facades\LaravelTestimonials;
$text = LaravelTestimonials::replace_testimonial_group_snippets_with_template($text);
Then the library will replace all the occurances of this snippet:
{# testimonial_group testimonial_group_id=[1] #}
with the some HTML code of the relative testimonial group. This code uses bootstrap 4.
./vendor/bin/phpunit --coverage-html=html
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.