New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

repat/laravel-migration-model

Eloquent Model for the migrations table
4,095 1
Install
composer require repat/laravel-migration-model
Latest Version:0.7
PHP:>=5.6
Laravel:5 – 11
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

laravellegends/interactive-model

This library is helpful to record data in the Eloquent models interactively via...

8,521 1
xethron/migrations-generator

Generates Laravel Migrations from an existing database

3,440,435 3,317
oscarafdev/migrations-generator

Generates Laravel Migrations from an existing database

605,398 362
repat/laravel-password-reset-model

Eloquent Model for the password_resets table

9,260 1
mediactive-digital/migrations-generator

Generates Laravel Migrations from an existing database

2,543 0

Version History

Version Released PHP Laravel License
0.7 >=5.6 ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0 MIT
0.6 >=5.6 ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 MIT
0.5 >=5.6 ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0 MIT
0.4 >=5.6 ^5.0 | ^6.0 | ^7.0 | ^8.0 MIT
0.3 >=5.6 ^5.0 | ^6.0 | ^7.0 MIT