analysators added

This commit is contained in:
Anatoliy Poloz
2023-12-18 14:36:32 +03:00
parent e9c4647f26
commit 92a54106ef
166 changed files with 32767 additions and 1222 deletions

View File

@@ -2,37 +2,29 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Casts\Attribute;
use CyrildeWit\EloquentViewable\Contracts\Viewable;
use CyrildeWit\EloquentViewable\InteractsWithViews;
use Illuminate\Auth\MustVerifyEmail as UserMustVerifyEmail;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Auth\MustVerifyEmail as UserMustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Fortify\TwoFactorAuthenticatable;
use Laravel\Jetstream\HasProfilePhoto;
use Laravel\Sanctum\HasApiTokens;
use CyrildeWit\EloquentViewable\InteractsWithViews;
use CyrildeWit\EloquentViewable\Contracts\Viewable;
use App\Models\UserDetailz;
use App\Models\CircumferenceMeasure;
use App\Models\WeightMeasure;
use App\Models\ConsultantEducation;
use App\Models\UserAttachment;
use App\Models\Plan;
use App\Models\PlanLike;
use App\Models\CommentUpvote;
class User extends Authenticatable implements Viewable, MustVerifyEmail
class User extends Authenticatable implements MustVerifyEmail, Viewable
{
use HasApiTokens;
use HasFactory;
use HasProfilePhoto;
use InteractsWithViews;
use Notifiable;
use TwoFactorAuthenticatable;
use InteractsWithViews;
use UserMustVerifyEmail;
/**
@@ -44,7 +36,7 @@ class User extends Authenticatable implements Viewable, MustVerifyEmail
'name',
'email',
'password',
'is_public_profile'
'is_public_profile',
];
/**
@@ -77,26 +69,26 @@ class User extends Authenticatable implements Viewable, MustVerifyEmail
'profile_photo_url',
];
/* public function author_of_blog_post()
{
return $this->belongsToMany(BlogPost::class, 'blog_post_author');
}
/* public function author_of_blog_post()
{
return $this->belongsToMany(BlogPost::class, 'blog_post_author');
}
public function author_of_plans()
{
return $this->belongsToMany(Plan::class, 'plan_author');
}
public function author_of_plans()
{
return $this->belongsToMany(Plan::class, 'plan_author');
}
public function author_of_diets()
{
return $this->belongsToMany(Diet::class, 'diet_author');
}
public function author_of_diets()
{
return $this->belongsToMany(Diet::class, 'diet_author');
}
public function author_of_recipe()
{
return $this->belongsToMany(Recipe::class, 'recipe_author');
}
*/
public function author_of_recipe()
{
return $this->belongsToMany(Recipe::class, 'recipe_author');
}
*/
public function diaries(): HasMany
{
return $this->hasMany(Diary::class);