3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace App\Http\Controllers\User; use Auth; use File; use App\User; use App\City; use App\Image; use App\Scope; use App\Skill; use App\CandidateSkills; use App\Reference; use App\Attribute; use App\Candidate; use App\Speciality; use App\Helpers\Helper; use Illuminate\Http\Request; use App\Rules\CheckCity; use App\Rules\CheckScope; use App\Rules\CheckSalary; use App\Rules\IsEmptyString; use App\Rules\CheckSpeciality; use Illuminate\Validation\Rule; use App\Http\Controllers\Controller; use App\Rules\CheckUniversityFinishYear; use Illuminate\Support\Facades\Validator; class ProfileController extends Controller { public function index($nickname) { return view('user.profile.resume'); } public function resume() { $user = User::find(auth()->user()->id); $data = [ 'user' => $user, ]; return view('user.profile.resume', $data); } public function edit() { $user = User::findOrfail(Auth::id()); $candidate = $user->candidate; $specialities = Speciality::all(); $skills = Skill::all(); $data = [ 'user' => $user, 'candidate' => $candidate, 'specialities' => $specialities, 'userSpecialityId' => 1, 'cities' => City::all(), 'skills' => $skills ]; return view('user.profile.edit', $data); } public function update(Request $request) { $user = User::findOrfail(Auth::id()); if(isset($request->about)) { $this->validate($request, [ 'about' => 'required|min:50' ]); $candidate->about = $request->about; $candidate->save(); } return "Success"; } }
Output for 7.3.0alpha1 - 7.3.0rc3
Fatal error: Uncaught Error: Class 'App\Http\Controllers\Controller' not found in /in/faM6F:29 Stack trace: #0 {main} thrown in /in/faM6F on line 29
Process exited with code 255.
Output for 7.0.28 - 7.2.11
Fatal error: Class 'App\Http\Controllers\Controller' not found in /in/faM6F on line 29
Process exited with code 255.
Output for 5.6.38
Fatal error: Class 'App\Http\Controllers\Controller' not found in /in/faM6F on line 30
Process exited with code 255.