Implement strict Eloquent when developing
This commit is contained in:
parent
5f82c82818
commit
3f4634710c
9 changed files with 19 additions and 15 deletions
|
@ -111,7 +111,7 @@ class FeedsController extends Controller
|
|||
*/
|
||||
public function notesJson()
|
||||
{
|
||||
$notes = Note::latest()->take(20)->get();
|
||||
$notes = Note::latest()->with('media')->take(20)->get();
|
||||
$data = [
|
||||
'version' => 'https://jsonfeed.org/version/1',
|
||||
'title' => 'The JSON Feed for ' . config('app.display_name') . '’s notes',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue