Giter VIP home page Giter VIP logo

admin_demo's Issues

static::lists() doean't work on laravel 5

I got problem on : FormItem::select('country_id', 'Country')->list(App\models\Country::class)->required();
when generate a 'select' element, it will call getList() method in models, and the default method will return static::lists(), but in laravel 5 this method will return a object not array. So the solution is after lists() method just add ->all(). Hope it will find someone.

Multiselect Not showing selected items

I have User model and Role model. In both models have belongsToMany relation with their. In User.php admin file i have:

  FormItem::multiSelect('roles', 'Roles')->list(\App\Models\Role::class)->value('roles.role_id');

When i save user i see in users_roles table my records. but when i edit it, i don't see selected items. why?

admin
table

problem with scope

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'); });

admin_demo

Здравствуйте, нет ли Демо для laravel 5.1??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.