shin1x1 / laravel-table-admin by shin1x1

Laravel-Table-Admin Simple CRUD package for Laravel 4
1,251
22
5
Package Data
Maintainer Username: shin1x1
Maintainer Contact: shin1x1@gmail.com (Masashi Shinbara)
Package Create Date: 2014-05-15
Package Last Update: 2014-06-27
Language: PHP
License: MIT
Last Refreshed: 2024-11-20 03:03:01
Package Statistics
Total Downloads: 1,251
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 22
Total Watchers: 5
Total Forks: 4
Total Open Issues: 1

laravel-table-admin

Build Status

Laravel-Table-Admin Simple CRUD package for Laravel 4

list

edit

demo site

blog (Japanese)

Installation

First, add dependency in composer.json

$ composer require "shin1x1/laravel-table-admin" "dev-master"

or

{
    "require": {
        "shin1x1/laravel-table-admin": "0.1.*"
    }
}

Execute composer install or update

$ composer install or update

Next, add ServiceProvider and Facade in app/config/app.php

    'providers' => [
        // ....
        'Shin1x1\LaravelTableAdmin\TAbleAdminServiceProvider`
    ],
    'aliases' => [
        // ....
        'TableAdmin' => 'Shin1x1\LaravelTableAdmin\TableAdminFacade',
    ],

Finally, you specify table name that to be enable CRUD app/routes.php

TableAdmin::route([
    'classes',
    'nationalities',
    'riders',
]);

Done!

If you will open http://localhost/crud/{TABLE} in browser, you can access CRUD.

Customization

View template files

If you run the below command then view template files will be publish to app/views/packages/shin1x1/laravel-table-admin/.

$ php artisan view:publish shin1x1/laravel-table-admin
Views published for package: shin1x1/laravel-table-admin

Published view template files include 3 files.base.blade.php is base layout file.form.blade.php is create and edit form page.index.blade.php is index page.

$ ls app/views/packages/shin1x1/laravel-table-admin/
base.blade.php  form.blade.php  index.blade.php

Example

Example using this package is below repo.

https://github.com/shin1x1/laravel-table-admin-example