controllers
3 weeks ago
class.stub
3 weeks ago
migration.stub
3 weeks ago
model.stub
3 weeks ago
provider.stub
3 weeks ago
request.stub
3 weeks ago
seeder.stub
3 weeks ago
migration.stub
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace {{migrations_namespace}}; |
| 4 | |
| 5 | use Framework\Contracts\Migration; |
| 6 | use Framework\Database\Schema\Structure; |
| 7 | use Framework\Supports\Facades\Schema; |
| 8 | |
| 9 | class {{class_name}} implements Migration |
| 10 | { |
| 11 | public function up() |
| 12 | { |
| 13 | Schema::create('{{table}}', function (Structure $table) { |
| 14 | $table->id(); |
| 15 | $table->timestamps(); |
| 16 | }); |
| 17 | } |
| 18 | |
| 19 | public function down() |
| 20 | { |
| 21 | Schema::drop_if_exists('{{table}}'); |
| 22 | } |
| 23 | } |
| 24 |