app/Http/Controllers/EmployeeController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $data['companies'] = Companies::orderBy('id')->get();
        return view('employee.create',$data);
    }
public function create ( ) { $ data [ 'companies' ] = Companies :: orderBy ( 'id' ) -> get ( ) ; return view ( 'employee.create' , $ data ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .