We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
در حال حاضر اطلاعات درون ماگریشن به صورت زیر میباشد
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddDescriptionToGatewayTransactions extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('gateway_transactions', function (Blueprint $table) { // $table->text('description')->after('ip')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('gateway_transactions', function (Blueprint $table) { // $table->dropColumn('description'); }); } }
که باید تغییر کند و به صورت زیر ایجاد شود. چون در زمان ماگریت امکان دارد کاربر نام جدول پیش فرض را تغییر داده باشد و با خطا مواجه میشود
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddDescriptionToGatewayTransactions extends Migration { function getTable() { return config('gateway.table','gateway_transactions'); } /** * Run the migrations. * * @return void */ public function up() { Schema::table($this->getTable(), function (Blueprint $table) { $table->text('description')->after('ip')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table($this->getTable(), function (Blueprint $table) { // $table->dropColumn('description'); }); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
در حال حاضر اطلاعات درون ماگریشن به صورت زیر میباشد
که باید تغییر کند و به صورت زیر ایجاد شود.
چون در زمان ماگریت امکان دارد کاربر نام جدول پیش فرض را تغییر داده باشد و با خطا مواجه میشود
The text was updated successfully, but these errors were encountered: