$list = $query->with(array('source' => function ($query) {
$query->select(['id', 'url', 'name', 'key_field']);
}))->select(['id', 'image_url', 'published', 'added', 'header']);
Route::get('/dogs', 'ApiController@checking');
Route::get('/dogs/{color}/{state}/{location}', 'ApiController@checking');
// App\Models\Tag
public function answers()
{
return $this->hasManyThrough('App\Models\Answer', 'App\Models\Question');
}
<body class="{{ Route::currentRouteName() !== 'index' ? 'my-class' : ''}}">
$router->get('/', ['as' => 'index', 'uses' => 'Class@index']);
'slug' => 'required|unique:pages,slug,' . $page->id,