Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 907 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 907 Bytes

API generator for WireUi select

To create WireUi selects it is necessary to format the data correctly, for this reason the official example has been extended to improve its potential.

Eloquent generic usage

Using 'simple' method you can add eloquent query or filter to optimize your API.

Collection version

You can filter Laravel Collection with 'getFromCollection'

Array version

You can filter custom array with 'getFromArray' method like this:

public function example_from_array(Request $request)
{
    $all_entries = [
        0 => 'Version 1',
        1 => 'Version 2',
    ];

    return $this->getFromArray($request, $all_entries);
}