Laravel Community Tools by Tighten

Popular tricks

458 tricks
Laravel 5 AJAX Pagination using JQuery Example
dave 9 years ago 6303
5.0
This is how you get the list of databases using Laravel.
harlekoy 9 years ago 6214
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 6155
Route file with angular js
Darshan Ma... 10 years ago 6019
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 5975
How to disable any ip from accessing your laravel app? Here is the solution. 1) Create Middleware "IPRestrictMiddleware". 2) Paste the code inside handle function. 3) Register the middleware in kernel function. 4) add the registered middleware in routes in order to restrict the access.
decipher 8 years ago 5808
I originally published this trick on Medium: https://medium.com/@simondepelchin/how-to-use-font-awesome-5-svgs-with-laravel-blade-a5dc93743cd0
webartisan 8 years ago 5750
This helper will helps you to serve the assets which is last updated by the server. The Main aim of this helper to eliminate the cache of the assets we updated in server.
decipher 8 years ago 5742
This function will allow you to use human readable strings in place of integers when defining a time in seconds for caching, delays in jobs etc.
robjbrain 8 years ago 5625