Laravel Community Tools by Tighten

Category "Routing" tricks

92 tricks
Laravel 5/6/7 Carbon Date Format Example Laravel is a web application framework with expressive, elegant syntax.The PHP Framework for Web Artisans,freeing you to create without sweating the small things. CRUD Operation With Server Side.
pakainfo-c... 6 years ago 7515
As I will cover this Post with live Working example to develop laravel 5.8 get validation errors ajax, so the this.validate is not a function react native is used for this example is following below. https://www.pakainfo.com/validate-is-not-a-function-in-laravel/
pakainfo-c... 6 years ago 5945
There are the Following The simple About laravel edit route not working Full Information With Example and source code.
pakainfo-c... 6 years ago 6456
Standard API Response in PHP / Laravel
saeedvir 6 years ago 7311
A few days ago I released a new package called obiefyapi-response, It is simple api response wrapper for laravel, you can give it try from GitHub URL: https://github.com/obiefy/api-response
obiefy 6 years ago 11100
api
One file for all routes is bad idea. For simplify this, look this snippets.
sr2ds 8 years ago 7837
4.2
This a simple way to use wilcard routing, for specific options.
neftaliyag... 8 years ago 3907
Sometimes you want to refer your custom middleware not by the full qualified namespace class, but only by an alias (E.g. like the ones that Laravel have created in the Middleware Kernel).
laraning 8 years ago 7563
First you create a file called Cors.php in app/Http/Middleware, then you register the middleware in the app/Http/Kernel.php file. If you want, you can change the default values adding the keys CORS_ALLOW_METHODS, CORS_ALLOW_ORIGINS, CORS_ALLOW_HEADERS and CORS_MAX_AGE to your .env file. Simple as that! This class is based on spatie/laravel-cors package.
lcdss 8 years ago 5769