app/Http/Controllers/EmployeeController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Employee  $employee
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Employee $employee)
    {
        $companies = Company::all();
        $employee = Employee::findOrFail($employee->id);
        return view('employees.edit', compact('employee', 'companies'));
    }
public function edit ( Employee $ employee ) { $ companies = Company :: all ( ) ; $ employee = Employee :: findOrFail ( $ employee -> id ) ; return view ( 'employees.edit' , compact ( 'employee' , 'companies' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
// dd($employee);