app/Http/Controllers/Admin/EmployeeController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Company  $company
     * @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)
    {
        $employee = Employee::where('id', $employee->id)->first();
        $companies = Company::orderBy('created_at', 'desc')->get();
        return view('Admin.pages.employee.edit')->with(['employee'=>$employee, "companies"=>$companies]);
    }
public function edit ( Employee $ employee ) { $ employee = Employee :: where ( 'id' , $ employee -> id ) -> first ( ) ; $ companies = Company :: orderBy ( 'created_at' , 'desc' ) -> get ( ) ; return view ( 'Admin.pages.employee.edit' ) -> with ( [ 'employee' => $ employee , " companies " => $ companies ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .