Download the PHP package internetguru/laravel-model-browser without Composer
On this page you can find all versions of the php package internetguru/laravel-model-browser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download internetguru/laravel-model-browser
More information about internetguru/laravel-model-browser
Files in internetguru/laravel-model-browser
Package laravel-model-browser
Short Description A Laravel package to browse models and show them in a table, autocmplete, etc.
License MIT
Informations about the package laravel-model-browser
Laravel Model Browser
A Laravel package to browse models and show them in cards, tables, etc.
Branch | Status | Code Coverage |
---|---|---|
Main | ||
Staging | ||
Dev |
Installation
-
Install the package via Composer:
- Optionally publish the views and translations:
Run Tests Locally
In Visual Studio Code you can simpy use Ctrl+Shift+B
to run the tests.
To run the tests manually, you can use the following commands:
Basic Usage
- Show the model browser in your views:
Advanced Options
When using the TableModelBrowser
component, you can customize its behavior by passing additional parameters.
Here are the advanced options you can use:
-
model
: The model class to be used for browsing. Optionally, you can specify a method to be called on the model. -
filterAttributes
: An array of attributes that can be used to filter the data. -
viewAttributes
: An array of attributes that will be displayed in the table, with their corresponding translations used as labels. -
formats
: An array of formatting functions for the attributes. You can specify a single function name or an array withup
anddown
keys. -
alignments
: An array of alignment settings for the attributes. You can specifystart
,end
, orcenter
. lightDarkStep
: An integer value to control the light/dark step for table rows. It is used only for the table layout.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-model-browser with dependencies
laravel/framework Version ^9.0 || ^10.0 || ^11.0
internetguru/laravel-common Version ^1 || ^2