Last active
February 13, 2017 08:46
-
-
Save ssi-anik/55542eb23ab1fd16f28ea889fa4fcc04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class StudentController extends Controller{ | |
| public function __construct(FormRepository $formRepository, StudentRepository $studentRepository){ | |
| $this->studentRepository = $studentsRepository; | |
| $this->formRepository = $formRepository; | |
| } | |
| public function libraryMethod(Request $request, LibraryRepository $libraryRepository){ | |
| $this->studentRepository($libraryRepository); | |
| $this->formRepository($request); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment