repat/laravel-migration-model

Eloquent Model for the migrations table
4,079 1
Install
composer require repat/laravel-migration-model
Latest Version:0.7
PHP:>=5.6
License:MIT
Last Updated:Mar 27, 2024
Links: GitHub  ·  Packagist
Maintainer: repat

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

Related Packages

dandarie/migrations-generator

Generates Laravel Migrations from an existing database

16 0
xethron/migrations-generator

Generates Laravel Migrations from an existing database

3,403,240 3,320
cyrrill/migrations-generator

Generates Laravel Migrations from an existing database

1,764 2
rjacobsen/eloquent-model-generator

Auto-generates all Eloquent models from the database in a Laravel 5 project.

3,016 8