I'm trying to use pivot table. But I'm confused how should I define my database tables. Concept: Pac...
Route::get('/artist_list', function () { $artists = Artists::with(['songs_number'=>function($...
You need to define the relationship: public function songs_number(){ return $this->belongsTo('A...
You cannot write both php if syntax and laravel blade @if syntax. However, you can do like this: @if...
The Laravel portal for problem solving, knowledge sharing and community building.
The community