我有一个表,其列的类型为Spatial point,
我希望查询使用laravel插入该列的值
是否有查询以获取特定范围内的商品?
任何帮助这里?
那是我的桌子在这里:
public function up()
{
Schema::create('markers', function(Blueprint $table)
{
$table->integer('marker_id')->primary();
$table->string('marker_name', 45);
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
});
DB::raw("ALTER TABLE markers ADD COLUMN location POINT");
}
Run Code Online (Sandbox Code Playgroud) 当我使用此路线时:
Route::get('home', function()
{
return View::make('index');
});
Run Code Online (Sandbox Code Playgroud)
使用URL:
本地主机/ laravel /公/家
它得到了视图并且运行良好.
但是当使用这条路线时:
Route::get('home/{id}', function($id)
{
return View::make('index')->with('id', $id);
});
Run Code Online (Sandbox Code Playgroud)
使用URL:
本地主机/ laravel /公/家用/ 10
它是视图但不适用于没有任何CSS,JS等的视图
我不能在这里定义ERROR?