예제 #1
0
 public function testNoteThrowException()
 {
     $this->setExpectedException(ModelNotFoundException::class);
     $user = \App\User::find(21);
     $repo = new NotesRepository();
     $repo->getNoteOfUserById(null, $user);
 }
예제 #2
0
 public function index(NotesRepository $notes)
 {
     return view('notes.app', ['notes' => $notes->getNotesOfUser(\Auth::user())]);
 }