Laravel Community Tools by Tighten

Popular tricks

458 tricks
When creating JS heavy apps some times you need to simulate a network delay so you can see how things are working as it's loading. This simple trick will do just that.
ericlbarne... 12 years ago 11210
Remove tags in controller with excepts fields https://gist.github.com/oLDu67/10863c9f51064d1d9390016b28143f85
racibaz 8 years ago 11206
Uses "thepixeldeveloper/sitemap": "dev-master" in composer.json to create a better organised sitemap structure via multiple "files" (routes).
nik-418 12 years ago 11080
Laravel OTP is a comprehensive package that simplifies the generation and verification of Time-based One-Time Passwords (TOTP) and HMAC-based One-Time Passwords (HOTP). Whether you're building two-factor authentication or securing API access, Laravel OTP offers an easy-to-use, Google Authenticator-compatible solution. With support for TOTP and HOTP, and built-in methods for secret generation and verification, this package is perfect for adding an additional layer of security to your Laravel applications.
mustafakha... 1 year ago 11023
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 11000
api
If you are running Laravel 4 behind Cloudflare over HTTPS some functions like ‘Request::secure()’ and ‘Request::isSecure()’ will return false. By using the setTrustedProxies method of the Request facade we can add the Cloudflare IP ranges to trust, thus the Request class will honor the ‘X-Forwarded-Proto’ and other ‘X-Forwarded’ headers.
zOxta 11 years ago 10966
Sometimes, you have differences between your dev set-up and production set-up that requires you to be able to set a different value for public_path. In your bindings.php file, just add the following code and you will be good.
ve2gmr 11 years ago 10824
example of how to test API with Codeception and Laravel
Mahmoudz 11 years ago 10774
5.0
If you have an array like: array( array('key' => 'value'), array('key' => 'anotherValue'), array('key' => 'sameValue'), array('key' => 'sameValue') ); and you want to make sure that you cant have 'key' with same value twice i was searching a native way to do it, but couldn't find one - so this is my solution:
dani3l 12 years ago 10773
4.1