app/Http/Controllers/Admin/RolController.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()
    {
       $datas = Rol::orderby('id')->get();
       return view('admin.rol.index', compact('datas'));
    }
public function index ( ) { $ datas = Rol :: orderby ( 'id' ) -> get ( ) ; return view ( 'admin.rol.index' , compact ( 'datas' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .