I'm new to Laravel. I am trying to understand if I create a model called Cat, and the cat has a prop...
Hi, Using Laravel 5.5 I am trying to design an incident management system which has bespoke requirem...
Hi, When using sync() a query like this is generated: update `course_group_course` set `year` = ? wh...
Hello , I have a question . I want to search Tags ( Many to Many ) in My post , JUST if I select tho...
i use laravel and my db is sql server . when use with method on eloquent , it make a query has where...
Hello! There is some problem with ordering eloquent query results by field from related table. Every...
Hello Everyone, I have a requirement of retrieving 5 million records from MySQL database and compari...
Hello, i am plugging away at my app and i am required to have team owners to be able to edit / updat...
Here's what my very simple model looks like: <?php namespace App; use Illuminate\Database\Eloqu...
Есть таблица produkts. У этой таблицы есть связи "многие ко многим" с 3 другими таблицами...
I created this method : public function vcListAndSegmentCount() { $valuechainLists = Valuechain::sel...
I'm going insane. I have a query that needs to use a join and eager loading. The join needs to occur...
I have several tables (all of them with softdeletes and timestamps : created_at , updated_at , delet...
I have two models MediaProfile and MediaProfilesContent. MediaProfile has many MediaProfilesContent...
When i create a model, for example with the Model::create() method its necesary to check if the mode...
Unit Model: namespace App\Models\Qualification; use Illuminate\Database\Eloquent\Model; class Unit...
Hello, I started to learn Laravel and I have a problem. I want to query questions from the database...
I want each slideer has eight products <div class="carousel-inner hidden-xs" role="listbox">...
There are 3 tables. First one is orders: After example order: class Order extends Model { // Tab...
$data = StoneType::with(['user'=>function($query){ // 每个取 2 条 return $query-&...
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