Laravel Community Tools by Tighten

Tag "database" tricks

87 tricks
This query searches the data from the Table and also with its relation table columns dynamically.
Muzamil-kh... 4 years ago 10074
GroupBy clause with multiple columns select in laravel
sanjok1988 5 years ago 20448
DB Seeder tool: https://github.com/haruncpi/db-seeder
haruncpi 5 years ago 13450
If I Let You Go, I Will Never Know - Westlife
saiming96 5 years ago 12739
search query from scope in laravel model
sanjok1988 5 years ago 9743
Here posts and categories have many to many relationships. the tricks are to fetch posts having a particular category attribute with categories details.
sanjok1988 5 years ago 11555
if you want to use ORM eloquent to get a query with the third table and select only particular attributes then here is the trick. Here users can have multiple positions in a company and each user has their own user profile. *note that user_id must be here to fetch data with a specific column. without foreign key eloquent cannot map relational table
sanjok1988 5 years ago 18367
As I will cover this Post with live Working example to develop how to save ckeditor content in mysql database, so the Laravel ckeditor display raw data in the database and post form is used for this example is following below.
pakainfo-c... 5 years ago 8677
maybe this is a nice way to prevent an eloquent model field being updated with mutators like this:
Tefoh 6 years ago 8626