Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with scope #5

Open
carincon opened this issue Oct 17, 2015 · 0 comments
Open

problem with scope #5

carincon opened this issue Oct 17, 2015 · 0 comments

Comments

@carincon
Copy link

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'); });
@carincon carincon changed the title problem with scipe problem with scope Oct 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant