Skip to content

Commit 53fc42b

Browse files
Merge pull request #17 from ARCANEDEV/feature-publish_migrations
Adding the publish migrations feature
2 parents 6fda041 + 55503c8 commit 53fc42b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/LaravelNotes.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php namespace Arcanedev\LaravelNotes;
2+
3+
/**
4+
* Class LaravelNotes
5+
*
6+
* @package Arcanedev\LaravelNotes
7+
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
8+
*/
9+
class LaravelNotes
10+
{
11+
/* -----------------------------------------------------------------
12+
| Properties
13+
| -----------------------------------------------------------------
14+
*/
15+
16+
/**
17+
* Publish the migrations.
18+
*
19+
* @var bool
20+
*/
21+
public static $publishMigrations = false;
22+
}

src/LaravelNotesServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function boot()
4545
parent::boot();
4646

4747
$this->publishConfig();
48-
$this->loadMigrations();
48+
LaravelNotes::$publishMigrations ? $this->publishMigrations() : $this->loadMigrations();
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)