Download the PHP package harmonic/inertia-table without Composer

On this page you can find all versions of the php package harmonic/inertia-table. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package inertia-table

Inertia Table

Latest Version on Packagist Total Downloads Build Status StyleCI

Easily create tables using InertiaJS (and Tailwind CSS) and Laravel Models. Tables can be filtered and sorted. Can scaffold an entire model with one artisan command!

Laravel Preset - Click for video

Installation

This package requires InertiaJS to be installed in your project. It is strongly recommended that you also install the corresponding Vue component inertia-table-vue to allow end to end scaffolding of an Inertia table in Vue

Via Composer

Register the remember route middleware in your App\HttpKernel class:

Usage

Via CLI

The quickest and easiest way to create an Inertia Table is using a single Artisan command. It will create the model, controller and Vue components for you automatically simply by supplying a model name as an argument.

Where User is the name of the model you wish to create. See the manual process below for what is created.

Manually

1) Modify your model so that it extends InertiaModel instead of model:

2) Create a controller:

UsersController.php

The index method takes a model and an array of column names which you wish to display as parameters. The array is optional, InertiaTable will show all columns by default.

You can also stipulate which columns can be searched by adding a third parameter, an array of column names that can be filtered. If left blank all columns are searchable.

3) Add your routes in web.php. You can do these manually or using the custom inertia route included with this package:

This will generate all your crud routes:

Method URI Action
GET users App\Http\Controllers\UsersController@index
POST users App\Http\Controllers\UsersController@store
DELETE users/$uri App\Http\Controllers\UsersController@destroy
PUT users/$uri App\Http\Controllers\UsersController@update
GET users/$uri/edit App\Http\Controllers\UsersController@edit
PUT users/$uri/restore App\Http\Controllers\UsersController@restore
GET users/create App\Http\Controllers\UsersController@create

4) You will need to create your front end. It is recommend you use inertia-table-vue for Vue projects. A JS example is provided at the bottom of that repository.

Change log

Please see the changelog for more information on what has changed recently.

Testing

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.


All versions of inertia-table with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5 || ~6
inertiajs/inertia-laravel Version ^0.2.0
reinink/remember-query-strings Version ^0.1.0
symfony/process Version ^4.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package harmonic/inertia-table contains the following files

Loading the files please wait ....