[ERROR] Laravel : Syntax error or access violation: 1055 Error (ok)
https://stackoverflow.com/questions/40917189/laravel-syntax-error-or-access-violation-1055-error
strict => falseph'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateItemsCountTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('items_count', function (Blueprint $table) {
$table->id();
$table->mediumInteger('id_item');
$table->mediumInteger('price');
$table->mediumInteger('quantity');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('items_count');
}
}



Ví dụ 1
Ví dụ 2

PreviousCài đặt Laravel trên Heroku miễn phíNext[WITH] Sự khác biệt with() method & load() method (ok)
Last updated