Laravel Community Tools by Tighten

Popular tricks

458 tricks
Easy command to create user with php artisan interactivlly
wallacemax... 4 years ago 24822
You may need this basically for security reasons. When somebody installed this plugin (https://wappalyzer.com/download) on the browser, s/he can see all the frameworks and javascript libraries among other things. Wappalyzer uses json to specify what it should be looking for. Check this GitHub Repo to understand how it identifies Laravel (https://github.com/ElbertF/Wappalyzer/blob/master/share/apps.json). So, to hide Laravel from this plugin, you need to edit the Session Cookie Name in /app/config/session.php. Change it from laravel_session to your desire name e.g: yourapp_session. Hope this helps.
amirolzolk... 11 years ago 24614
Easy way to create many filters aggregated in Eloquent with query string
wallacemax... 4 years ago 24174
You can unguard all your Models instead of setting the protected guarded variable to an empty array in each App\Models\YourModel class using Model::unguard() in the boot method of AppServiceProvider class.
berto309 5 years ago 24166
The URL rewriting in Windows IIS is via a configuration xml file located in the site root with the name of web.config. The code below abilita and does the same paper apache .htaccess, just copy the code below and paste it in your web.config file by saving it in the folder public / project, assuming you've directed your root directory to public /, everything should work fine!
ggwebdev 11 years ago 24151
4.2
Hello what if your application when it is logout then you intentionally hit the back button on your web browser, what happened? your application will be returned to the original page, which should be redirected to the login page. Here I share a simple trick, put on a filters.php
cyberid41 11 years ago 24108
Until Taylor makes it part of Homestead, here's one way to add SSL support for your dev sites. Plenty of room for improvement, so please add your ideas. For example, generating the ssl certs in the loop, instead of including them.
jhauraw 11 years ago 24022
When doing some sort of filtering in Eloquent, sometimes you need to use operators other than "=" and there is no easy way to know which operators you can use. This trick details the possible operators for you.
msurguy 12 years ago 23763
If you want to take a SQL file of your MySQL DB, By clicking a button in the Laravel application, then here is the code.
codingwith... 1 year ago 23305