LaravelPackages.net
Acme Inc.
Toggle sidebar
adrosoftware/notitia-visum

BREAD (browse, read, edit, add, delete) generator for Laravel

3
1
0.1.0
About adrosoftware/notitia-visum

adrosoftware/notitia-visum is a Laravel package for bread (browse, read, edit, add, delete) generator for laravel. It currently has 1 GitHub stars and 3 downloads on Packagist (latest version 0.1.0). Install it with composer require adrosoftware/notitia-visum. Discover more Laravel packages by adrosoftware or browse all Laravel packages to compare alternatives.

Last updated

Notitia Visum

Build status Coverage Status Latest Stable Version License

This is a WIP package. Bread

Notitia Visum is a BREAD (browse, read, edit, add, delete) generator for Laravel

Usage

Brows usage:

/**
 * Inside a controller action
 */
return (new NotitiaVisum())
    ->table('users')
    ->browse();

You can add a raw where like this:

return (new NotitiaVisum())
    ->table('users')
    ->whereRaw('role = \'admin\'')
    ->browse();

If you want to filter the fields to render in the table, you can add an array of fields:

return (new NotitiaVisum())
    ->table('users')
    ->whereRaw('role = \'admin\'')
    ->browse(['id', 'first_name', 'role']);

By default the title on the table is the table name on the database but you can override it like this:

return (new NotitiaVisum())
    ->table('users')
    ->title('System Users')
    ->browse(['id', 'first_name', 'role']);

Tests

$ vendor/bin/phpunit

Authors

Adro Rocker

Star History Chart