承接 ka4ivan/laravel-view-sortable 相关项目开发

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

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

ka4ivan/laravel-view-sortable

最新稳定版本:1.1.0

Composer 安装命令:

composer require ka4ivan/laravel-view-sortable

包简介

Sort Link and URL for Laravel Framework

README 文档

README

License Build Status Latest Stable Version Total Downloads Quality Score

Installation

  1. Require this package with composer
composer require ka4ivan/laravel-view-sortable
  1. Publish package resource:
php artisan vendor:publish --provider="Ka4ivan\ViewSortable\ServiceProvider"

Usage

Examples usage

{!! \Sort::getSortLink('status', 'Status') !!}
// <a class="lte-sort-link" href="http://test.test?sort=status&order=asc" style="position: relative">Status </a>

{!! \Sort::getSortLink(sort: 'city', text: 'City', order: 'desc', class: 'text-black', query: ['locale' => 'uk']) !!}
// <a class="text-black" href="http://test.test?sort=city&order=desc&locale=uk" style="position: relative">City </a>

{!! (new \Ka4ivan\ViewSortable\Support\Sort)->getSortLink('phone', 'Phone') !!}
// <a class="lte-sort-link" href="http://test.test?sort=phone&order=asc" style="position: relative">Phone </a>

{!! \Sort::getSortUrl('status', 'asc') !!}
// http://test.test?sort=status&order=asc

{!! \Sort::getSortUrl('name', 'asc', ['locale' => 'uk']) !!}
// http://test.test?sort=name&order=asc&locale=uk

{!! \Sort::getNextOrder() !!}
// asc|desc

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-26