app/Http/Controllers/EmployeeController.php
/**
	 * Show the application dashboard.
	 *
	 * @return \Illuminate\Http\Response
	 */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
	{
    $data = Employee::with('company')->paginate(10);
    $companies = Company::all();
		return view('/home', compact('data', 'companies'));
	}
public function index ( ) { $ data = Employee :: with ( 'company' ) -> paginate ( 10 ) ; $ companies = Company :: all ( ) ; return view ( '/home' , compact ( 'data' , 'companies' ) ) ; }
Show the application dashboard.
Show the application dashboard .