承接 marick/classless-migrations-for-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marick/classless-migrations-for-laravel

最新稳定版本:v0.0.4

Composer 安装命令:

composer require marick/classless-migrations-for-laravel

包简介

README 文档

README

This package allows you to create classless migrations that look like this:

<?php

declare(strict_types=1);

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

Schema::create('posts', function (Blueprint $table) {
    $table->id();
    $table->string('title');
    $table->string('slug');
    $table->text('body');
    $table->boolean('published')->default(false);
    $table->timestamps();
    $table->softDeletes();
});

You might notice there's no way to roll back this migration. That's intentional. This package is for those daredevils who are already skipping the down() method on their migrations. Now, you don't even have the option - it's forward-only from here on out!

Installation

composer require marick/classless-migrations-for-laravel

That's all. You may now write classless migrations.

Publish migration stubs

php artisan classless-migrations:make-stub

Will publish the migration stubs so that php artisan make:migration creates classless migrations.

Important questions

Should I use this?

Maybe! Should you?

Should my team or my company use this?

Probably not!

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-10