Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajthinking/modeltables
Detect any laravel model and put them into neat tables on the fly
https://github.com/ajthinking/modeltables
Last synced: about 9 hours ago
JSON representation
Detect any laravel model and put them into neat tables on the fly
- Host: GitHub
- URL: https://github.com/ajthinking/modeltables
- Owner: ajthinking
- Created: 2017-09-26T06:57:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T16:59:47.000Z (over 6 years ago)
- Last Synced: 2024-05-01T14:54:29.102Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ModelTables for Laravel
[![Latest Stable Version](https://poser.pugx.org/ajthinking/modeltables/v/stable)](https://packagist.org/packages/ajthinking/modeltables)
[![Total Downloads](https://poser.pugx.org/ajthinking/modeltables/downloads)](https://packagist.org/packages/ajthinking/modeltables)
[![License](https://poser.pugx.org/ajthinking/modeltables/license)](https://packagist.org/packages/ajthinking/modeltables)
[![composer.lock](https://poser.pugx.org/ajthinking/modeltables/composerlock)](https://packagist.org/packages/ajthinking/modeltables)
I found myself constantly going back to tinker or some db tool to check the data in my tables. This package detects any models on the fly and put the data into neat tables.
Enjoy!!
## Quickstart
```
composer require ajthinking/modeltables
```
That's it. Now you can visit any route like
```
/models/{model-slug}
```## Notes
- If your using Laravel < 5.5 you need to manually add the serviceprovider
- By default the package scans /app/ and /app/Models/ and assumes all files there are models
- You might not want this package running in production exposing all your users etc. Then just install with composer require --dev
- Having other files side by side with your Models will propblably crash this package
- Model pages need to be migrated before accessed## Todo
- Move model folder paths to a config
- Add path prefix to config
- Check if model has been migrated
- Catch exceptions
- Put links in the table to any related models.## Contributing
- Pull requests welcome.## Licence
- MIT