app/Http/Controllers/EmployeeInfoController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $data['employeeInfo'] = EmployeeInfo::orderBy('id')->get();
        $data['employees']    = Employee::orderBy('id')->get();
        return view('employee-info.index',$data);
    }
public function index ( ) { $ data [ 'employeeInfo' ] = EmployeeInfo :: orderBy ( 'id' ) -> get ( ) ; $ data [ 'employees' ] = Employee :: orderBy ( 'id' ) -> get ( ) ; return view ( 'employee-info.index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .
// dd($data);