$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');
if (!defined('HACKER')) {
die('Хакер чтоли?');
}
// App\Models\Tag
public function answers()
{
return $this->hasManyThrough('App\Models\Answer', 'App\Models\Question');
}
@section('css')
@stop
@section('css')
@parent
<link href="..."/>
<style>
</style>
@stop