Laravel Community Tools by Tighten

Tag "database" tricks

87 tricks
This is how you get the list of databases using Laravel.
harlekoy 8 years ago 5766
This is the trick i use whenever i want to seed states or countries. I simply put the states inside an array and create a loop through the array and save each record into the database instead of repeating the instance to save the records.
Adewagold 8 years ago 13189
Laravel Load More Data on Page Scroll – Laravel 5
dave 8 years ago 9013
Laravel 5.4 Upload Image with Validation example
dave 8 years ago 21481
This example provides a quick and simple method to generate a hash for a model without saving a UUID/GUID to the database.
Donny5300 8 years ago 8238
Laravel MySQL in default returns "SQLSTATE[HY000]: General error: 1366 Incorrect string value" error in emoji save... this error is because Laravel in default uses utf8 charset in MySQL, change your `config/database.php` like below and reset your migration instead putting out that error...
tuytoosh 9 years ago 6864
I'm using a pivot table on the project I'm working with to filter category
dickyeka 9 years ago 9388
X-editable allows you to create editable elements on your page. It can be used with any engine (bootstrap, jquery-ui, jquery only) and includes both popup and inline modes. Let's have a quick look at implementing this in Laravel apps.
baqirfaroo... 9 years ago 13132