app/Http/Controllers/Admin/EmployeeController.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()
    {
        $employees = Employee::orderBy('created_at', 'desc')->paginate(10);
        return view('Admin.pages.employee.index')->with('employees', $employees);
    }
public function index ( ) { $ employees = Employee :: orderBy ( 'created_at' , 'desc' ) -> paginate ( 10 ) ; return view ( 'Admin.pages.employee.index' ) -> with ( 'employees' , $ employees ) ; }
Display a listing of the resource.
Display a listing of the resource .