File manager - Edit - /home/asiatechinc/public_html/bhrhotelsindia.com/vendor/rachidlaasri/laravel-installer/src/Helpers/MigrationsHelper.php
Back
<?php namespace RachidLaasri\LaravelInstaller\Helpers; use Illuminate\Support\Facades\DB; trait MigrationsHelper { /** * Get the migrations in /database/migrations. * * @return array Array of migrations name, empty if no migrations are existing */ public function getMigrations() { $migrations = glob(database_path().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR.'*.php'); return str_replace('.php', '', $migrations); } /** * Get the migrations that have already been ran. * * @return \Illuminate\Support\Collection List of migrations */ public function getExecutedMigrations() { // migrations table should exist, if not, user will receive an error. return DB::table('migrations')->get()->pluck('migration'); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings