patroklo/improved-links
Larablocks Analysis
patroklo/improved-links works with Laravel 5 (latest release 1.1.1, Dec 18, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Dec 18, 2017)
- 43 downloads a month (needs 10,000)
- 8 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Dec 18, 2017.
- No releases in the last 12 months.
- First released: Mar 9, 2017.
- Monthly downloads: 43, up 258% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require patroklo/improved-links |
|
| Latest Version: | 1.1.1 |
| PHP: | >=5.4.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Apr 30, 2020 |
| Links: | GitHub · Packagist |
Laravel improved HTTP method links
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.
Related Packages
URL routing framework and requests/responses handler for PHP
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.1.1 | >=5.4.0 | 5.* | MIT | |
| v1.0 | >=5.4.0 | 5.* | MIT |