laravel-migration-model contains one Eloquent model for the migrations
table.
$ composer require repat/laravel-migration-model
$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);
- MIT, see LICENSE
- Version 0.7
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123