File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments