承接 davide-casiraghi/laravel-testimonials 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

davide-casiraghi/laravel-testimonials

Composer 安装命令:

composer require davide-casiraghi/laravel-testimonials

包简介

A Laravel package to show testimonials trough a carousel. The contents support multi language.

README 文档

README

Latest Version on Packagist Build Status StyleCI Quality Score Coverage Status GitHub last commit

A Laravel package to show testimonials trough a carousel. The contents support multi language.

Installation

You can install the package via composer:

composer require davide-casiraghi/laravel-testimonials

Publish all the vendor files

php artisan vendor:publish --force

Run the database migrations

php artisan migrate

Install also slick carousel

npm install slick-carousel

Import the scss files

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

Import the js files

Add this line to your resources/js/app.js file:

require('./vendor/laravel-testimonials/testimonials');   
import 'slick-carousel';    

Usage

Authorization

To work the package aspect that in your user model and table you have a field called group that can have this possible values:

  • null: Registered user
  • 1: Super Admin
  • 2: Admin

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.

Access to the package

After the package is published this new routes will be available:

  • /testimonialGroups
  • /testimonials

Accessing to this routes you can manage new testimonial groups and testimonials.

Replace the snippet occurrances

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);

Use the code snippet in your posts

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.

Testing

./vendor/bin/phpunit --coverage-html=html

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email davide.casiraghi@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固