Skip to content

problem with scope #5

@carincon

Description

@carincon

Into Administrator I want to add to filter through a scope, but not working. My idea is to consult all records with idAdministrator equal to 2.

Model

where('idAdministrator','=',$type); } ``` } Admin title('Parqueadero')->with()->filters(function () { ModelItem::filter('idAdmin')->scope('idAdmin')->value('2'); })->columns(function (){ Column::string('idParking', 'ID'); Column::string('nameParking', 'NOMBRE'); Column::string('addressParking', 'DIRECCION'); Column::string('costPerReservation', 'COSTO X MIN'); Column::string('status', 'ESTADO'); })->form(function () { FormItem::text('nameParking', 'NOMBRE DEL PARQUEADERO'); FormItem::text('addressParking', 'DIRECCION'); FormItem::text('telephone', 'TELEFONO'); FormItem::text('movilphone', 'CELULAR'); FormItem::text('latitud', 'LATITUD'); FormItem::text('longitud', 'LONGITUD'); FormItem::text('total', 'TOTAL PARQUEADEROS'); FormItem::text('costPerReservation', 'COSTO X MIN'); FormItem::checkbox('status', 'ESTADO'); });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions