Looking to hire Laravel developers? Try LaraJobs

laravel-migration-model maintained by repat

Description
Eloquent Model for the migrations table
Author
Last update
2024/03/27 19:16 (dev-master)
License
Downloads
4 040

Comments
comments powered by Disqus

laravel-migration-model

Latest Version on Packagist Total Downloads

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

Version

  • Version 0.7

Contact

repat

Flattr this git repo