| 1 | <?php |
||
| 8 | class CreateMenusTable extends Migration |
||
|
|
|||
| 9 | { |
||
| 10 | protected $table_menus; |
||
| 11 | |||
| 12 | public function __construct() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Run the migrations. |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | public function up() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Reverse the migrations. |
||
| 43 | * |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function down() |
||
| 50 | } |
||
| 51 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.