Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(Request $request)
 {
     $roles = Role::name($request->get('name'))->paginate(5);
     return view('listarole', compact('roles'));
 }