Fatal error: Uncaught Error: Class 'Illuminate\Database\Eloquent\Relations\Relation' not found in C:\xampp\htdocs\admin\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Relations\BelongsToMany.php:16
Stack trace:
#0 {main}
thrown in C:\xampp\htdocs\admin\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Relations\BelongsToMany.php on line 16