| 1 | <?php |
||
| 7 | class CreateOauthScopesTable extends Migration |
||
|
|
|||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | 16 | Schema::create('oauth2_scopes', function(Blueprint $table) { |
|
| 17 | 16 | $table->string('id')->primary(); |
|
| 18 | |||
| 19 | 16 | $table->timestamps(); |
|
| 20 | 16 | }); |
|
| 21 | 16 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Reverse the migrations. |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | 16 | public function down() |
|
| 29 | { |
||
| 30 | 16 | Schema::drop('oauth2_scopes'); |
|
| 31 | 16 | } |
|
| 32 | } |
||
| 33 |
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.