syntax error, unexpected '​' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) Laravel

I have a shop model you can see it

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use TCG\Voyager\Traits\Spatial;


class Shop extends Model
{
use Spatial;

​ protected $spatial = ['lat'];
}

but it consistently giving me error after writing these lines of code

syntax error, unexpected '​' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3bqmB2O
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time