shin1x1 / laravel-table-admin
Laravel-Table-Admin Simple CRUD package for Laravel 4
Installs: 1 251
Dependents: 1
Suggesters: 0
Security: 0
Stars: 22
Watchers: 5
Forks: 4
Open Issues: 1
Requires
- php: >=5.4.0
- doctrine/dbal: ~2.3
- laravel/framework: ~4.1
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-11-12 18:38:53 UTC
README
Laravel-Table-Admin Simple CRUD package for Laravel 4
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.