repat/laravel-migration-model
laravel-migration-model
laravel-migration-model contains one Eloquent model for the migrations table.
Installation
$ composer require repat/laravel-migration-model
Documentation
Attributes/Methods
$migration = \Repat\Laravel\Migration::first();
// Attributes from table
$migration->id;
$migration->migration;
$migration->batch;
// Mutator attributes
$migration->filename;
// Methods
$migration->fileExists();
// list all files from migrations folder
$migrations = Migration::listFiles();
// list all files from migrations folder as migration name (without '.php')
$migrations = Migration::listFiles(true);
License
- MIT, see LICENSE
Version
- Version 0.7
Contact
repat
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123
Related Packages
daavelar/revengedb
3,082
20
kitloong/laravel-migrations-generator
Generates Laravel Migrations from an existing database
9,476,691
2,867
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.7 | >=5.6 | ^5.0 | | MIT | |
| 0.6 | >=5.6 | ^5.0 | | MIT | |
| 0.5 | >=5.6 | ^5.0 | | MIT | |
| 0.4 | >=5.6 | ^5.0 | | MIT | |
| 0.3 | >=5.6 | ^5.0 | | MIT | |
| 0.2.2 | >=5.6 | ^5.0 | | MIT | |
| 0.2.1 | >=5.6 | ^5.0 | | MIT | |
| 0.2 | >=5.6 | ^5.0 | | MIT | |
| 0.1 | >=5.6 | ^5.0 | | MIT |
