Laravel-Geographical icon indicating copy to clipboard operation
Laravel-Geographical copied to clipboard

Call to undefined method App\\Model::geofence()

Open thihakyaw opened this issue 5 years ago • 3 comments

I follow the steps what you said in read me.

I am not sure about it is a right way I did though. Is there any solution? Can I get examples? I am using it on Laravel 7 with the column you suggested. image

thihakyaw avatar Mar 30 '20 17:03 thihakyaw

Geographical is a Trait Use it in the model like this

<?php
use Malhal\Geographical\Geographical;

class User extends Authenticatable 
{
    use  Geographical;
....

GhadeerHamed avatar Apr 05 '20 12:04 GhadeerHamed

Can I suggest you add the line

use Malhal\Geographical\Geographical;

to your documentation page?

AlunR avatar May 24 '20 09:05 AlunR

Thanks will do and by the way you can edit that page yourself and it does a pull request which I accept.

malhal avatar May 24 '20 10:05 malhal