Download the PHP package c-arena/eloquent-stalker without Composer
On this page you can find all versions of the php package c-arena/eloquent-stalker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download c-arena/eloquent-stalker
More information about c-arena/eloquent-stalker
Files in c-arena/eloquent-stalker
Package eloquent-stalker
Short Description Visualize eloquent models information
License MIT
Homepage https://github.com/c-arena/eloquent-stalker
Informations about the package eloquent-stalker
Visualize eloquent models information
It helps visualize the eloquent models and their defined relationships. Very useful when comparing to the actual database so we can know what relationships are missing.
Installation
You can install the package via composer:
Now you need to run the installer:
Optionally, you can publish the views using
You have to make sure the namespace and class name are directly related to the path of the models. Otherwise, it won't work as expected. We use the app_path() to look for all the existant models in your project.
Usage
There are two ways in which you can use this package:
Console
You can list all your models with its info using an artisan command we provide for you:
You might also want to list all the relationships
Optionally, you can pass the name of a model to check its relationships
Browser
We provide a route (which you can configure in the config file) that will be shown in development mode. By default, the route will be '/eloquent-stalker'.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Carlos Arena
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of eloquent-stalker with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0