承接 patroklo/improved-links 相关项目开发

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

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

patroklo/improved-links

最新稳定版本:1.1.1

Composer 安装命令:

composer require patroklo/improved-links

包简介

Improved links that use HTML methods when clicked.

README 文档

README

Links that send HTTP methods when clicked. Useful when needing POST or DELETE links.

Index

Install

Add this package with composer with the following command:

composer require patroklo/improved-links

After updating composer, add the service providers to the providers array in config/app.php.

Patroklo\ImprovedLinks\Providers\ImprovedLinksProvider::class,

Go to your console and type the artisan vendor publish command.

php artisan vendor:publish

This will add the views and javascript needed for the correct operation of the package.

Finally, add in your layout a reference to the javascript library:

    <script type="text/javascript" src="{{ asset('assets/js/improved-links.js') }}"></script>

Aaaaand it's done!

Description

Handles the action triggered by user. This package lets the developer the creation of links that will use other HTTP methods than GET. Also it's possible to add manually data that will be sent through the link. It's possible to send any of the valid HTTP methods through this link: POST, GET, PUT, PATCH, DELETE.

How to use it

The link method it's an extension of the HTTP library based in the main link method.

\Html::methodLink'('method' => 'POST', 'url', 'title' => null, 'attributes' => [], 'secure' => null, 'escape' => true);

To send the data it's only neccesary to add a data key into the attributes section.

{{ Html::methodLink("PUT", 'site/foobar', 'Submit', ['data' => ['name1' => 'value1, 'name2' => 'value2']]) }}

Once clicked, the link will redirect to the defined url sending all the data via POST.

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 4
  • Forks: 4
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固