I put the Models file under AppModels
PHPz2017-05-16 16:54:04
It must be written completely. When this code is actually parsed, it will not be clear where the Class
you specified is, so you have to write the complete namespace
->belongsTo('AppModelsGroup', 'uid', 'gid')
or
->belongsTo(AppModelsGroup::class, 'uid', 'gid')
怪我咯2017-05-16 16:54:04
Add
to the beginning of the file in the current screenshot (the next line of <?php)namespace App\Models;