[ERROR] Laravel : Syntax error or access violation: 1055 Error (ok)
https://stackoverflow.com/questions/40917189/laravel-syntax-error-or-access-violation-1055-error
strict => falsephAs in
'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,
],database\migrations\2022_08_15_034648_create_items_count_table.php
<?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');
}
}
database\factories\ItemsCountFactory.php
database\seeders\ItemsCountSeeder.php
app\Models\ItemsCount.php
database\migrations\2022_08_15_033307_create_items_table.php
database\seeders\ItemSeeder.php
database\factories\ItemFactory.php
app\Models\Item.php



Ví dụ 1
app\Http\Controllers\HomeController.php
resources\views\tests.blade.php
Ví dụ 2
app\Http\Controllers\HomeController.php
resources\views\tests.blade.php

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