I have a problem inserting data into my database and always get the following error.
SQLSTATE[22003]: Numeric value out of range: 1416 Cannot get geometry object from data you send to the GEOMETRY field
I tried to insert data with my Eloquent model using query builder, but it gave me the same error. In the migration file I have:
Schema::create('books', function (Blueprint $table) {
$table->bigIncrements('id')->autoIncrement()->primary();
$table->text("name");
$table->multiLineString("opinion");
$table->string("post");
$table->timestamp("date");
});
I've also tried to insert data with this:
$validatedData = $this->validate($request, [
'name' => 'required|alpha_dash|max:40|min:3',
'opinion' => 'required|alpha_dash|max:40|min:3',
]);
$validatedData = Binput::all();
DB::table("books")->insert([
"name" => $validatedData["name"],
"post" => $url,
"opinion" => $validatedData["opinion"],
]);
dd($validatedData["opinion"]);?