I have Email model with: public function getEmailJsonAttribute($value) { return $value ? json_de...
Guys, This error shows up after generating a new migration: [ErrorException] file_put_contents(C:\we...
I have 3 tables: Topic: id Sub-Topic: id, topic_id Resources: id, subtopic_id Topic has 'hasMany' re...
After updating to 4.2 using composer update, I have added use SoftDeletingTrait; protected $dates =...
I have three tables - users, spots, and tags When a user creates a spot (location), they also create...
Hello I have this query: $galery = DB::table("galery") ->where("approved"...
How can I take all user post comments? I'm already using morphTo() method between comments and posts...
Hello I have following structure Table categories Table posts Table category_post Table users Table...
I am trying to use usort and sortby to basically after the code below is 1. sort $featureLists by 'f...
I am using DB::raw how can i format a date field in the database 'DATE_FORMAT(created_at,"%m %j...
Hi, is there an easy way, to trace the changes in a database using eloquent? I am using a mySQL data...
I have laravel to automatically manage the created and updated timestamps when I create a new model....
Hi, I have to list some records related to users without the given parameters. Is there any way to m...
I have a column already called "name" in a table "manufacturers". I want to writ...
I have this for Manufacturer seed class ManufacturerTableSeeder extends Seeder { public functio...
I'm trying to deploy a locally working Laravel 4 project on a Strato.com-Server. Locally I can execu...
I am following a guide and it seems that the migration command neither generates the code it is supp...
Hi there, I have read over all the posts I can find on here about the APP_ENV, and am using the meth...
$number= Input::get('count'); //send number 4 $text = "hello"; fo...
Hi, I got a bit confused. for simple messaging system, consider we have two models: User model &...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community