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 7691
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 6132
There are the Following The simple About laravel edit route not working Full Information With Example and source code.
pakainfo-c... 6 years ago 6626
Standard API Response in PHP / Laravel
saeedvir 6 years ago 7489
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 7 years ago 11276
api
One file for all routes is bad idea. For simplify this, look this snippets.
sr2ds 8 years ago 7972
4.2
This a simple way to use wilcard routing, for specific options.
neftaliyag... 8 years ago 4055
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 7690
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 5953