You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRestaurantsTable extends Migration
{
public function up()
{
Schema::collection('restaurants_collection', function($table)
{
$table->index(array('location' => '2dsphere'));
});
}
public function down()
{
}
}
Error:
[MongoDB\Exception\InvalidArgumentException]
$collectionName is invalid:
@9787954511 MongoDB doesn't have restrictive column types, so there's no real need to create indices of this nature. I would advise using Eloquent's mutators if you need to validate data types here.
Hey, im trying to store Geodata in the GeoJSON-format. This post ist related to the following post:
#371
Unfortunately i'm getting an error, when trying to run the created migrate file.
Migration file: 2016_06_14_152201_create_restaurants_table.php
Error:
Stack trace:
I'm using Lumen with the latest version.
Can anybody help me please?
Thanks!
The text was updated successfully, but these errors were encountered: