repat / laravel-migration-model
Eloquent Model for the migrations table
Installs: 3 424
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- laravel/framework: ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0
README
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