Esempio n. 1
0
 public function getResumePutUrl()
 {
     $user = Auth::user();
     return GeneralController::resumeUrl($user->id, 'put');
 }
Esempio n. 2
0
 public function getApplication($id)
 {
     $user = Auth::user();
     if (!Auth::user()->hasRole('exec')) {
         //TODO middleware perhaps?
         return;
     }
     $app = Application::with('user', 'school', 'team', 'notes.user')->find($id);
     $app->resumeURL = GeneralController::resumeUrl($app->user->id, 'get');
     $app->myrating = ApplicationRating::where('application_id', $id)->where('user_id', $user->id)->first();
     $app->github_summary = $app->getGithubSummary();
     return $app;
 }