python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Sort an Eloquent model
Table for MyModel is like below
id name parent_id
--------------------------
1 parent1 null
2 p1-c1 1
3 parent2 null
4 p1-c1-g1 2
5 p2-c1 ...
Mahdi
Votes: 0
Answers: 3
In Laravel Eloquent, how do you UPDATE a model with a cast encrypted field in a table with a composite primary key?
I finally found out how to update data in a table with a composite primary key in Laravel. This is how. (Let's say the Vehicles table has a composite primary key of "make" and "model&q...
Magmatic
Votes: 0
Answers: 2
Search multile words name in columns using laravel
Is there any better solution to the code below, I want to search names but first name and last name is different columns as of now I have this
->where(function($query) use($q){
$names =...
EasyWay
Votes: 0
Answers: 3