static analisys refactoryn, View types added

This commit is contained in:
Anatoliy Poloz
2023-12-29 10:58:52 +03:00
parent 8ee6f527c4
commit a776b3974a
77 changed files with 3667 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ restart: stop start
status:
docker-compose ps
bash:
docker-compose exec php-fpm bash
tinker:
docker-compose exec php-fpm ./artisan tinker
@@ -44,8 +47,8 @@ seed-db:
fix-permissions:
docker-compose exec php-fpm chown -R www-data:www-data storage
lint-code-style:
docker-compose exec php-fpm composer php-cs-fixer fix
fix-code-style:
docker-compose exec php-fpm vendor/bin/pint
artisan:
docker-compose exec php-fpm ./artisan $(ARGS)
@@ -71,5 +74,11 @@ test:
fix-insights:
docker-compose exec php-fpm ./artisan insights --fix
rector:
docker-compose exec php-fpm vendor/bin/rector process --dry-run
static-analysis:
docker-compose exec php-fpm composer static-analysis
init: clone copy-infra-env restart setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps build-frontend-prod fix-permissions make-storage-link

956
analize.log Normal file
View File

@@ -0,0 +1,956 @@
docker-compose exec php-fpm composer static-analysis
> phpstan analyse --ansi --memory-limit 512M --error-format=github
Note: Using configuration file /application/phpstan.neon.dist.
0/291 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% 291/291 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
::error file=app/Actions/Fortify/UpdateUserProfileInformation.php,line=27,col=0::Parameter #1 $photo of method App\Models\User::updateProfilePhoto() expects Illuminate\Http\UploadedFile, string given.
::error file=app/Console/Commands/UpdateSlugs.php,line=27,col=0::Method App\Console\Commands\UpdateSlugs::handle() has no return type specified.
::error file=app/Console/Commands/UpdateSlugs.php,line=34,col=0::Call to static method replaceLast() on an unknown class App\Console\Commands\Str.
::error file=app/Events/ChatMessageUpdated.php,line=15,col=0::Property App\Events\ChatMessageUpdated::$message has no type specified.
::error file=app/Events/DietSelected.php,line=15,col=0::Property App\Events\DietSelected::$diet has no type specified.
::error file=app/Events/DietSelected.php,line=17,col=0::Property App\Events\DietSelected::$user has no type specified.
::error file=app/Http/Controllers/BlogPostController.php,line=48,col=0::Method App\Http\Controllers\BlogPostController::show() should return Illuminate\View\View but return statement is missing.
::error file=app/Http/Controllers/CalendarController.php,line=16,col=0::Property App\Http\Controllers\CalendarController::$weekStartsAt has no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=18,col=0::Property App\Http\Controllers\CalendarController::$weekEndsAt has no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=20,col=0::Property App\Http\Controllers\CalendarController::$startsAt has no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=22,col=0::Property App\Http\Controllers\CalendarController::$endsAt has no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=24,col=0::Property App\Http\Controllers\CalendarController::$gridStartsAt has no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=26,col=0::Property App\Http\Controllers\CalendarController::$gridEndsAt has no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=28,col=0::Method App\Http\Controllers\CalendarController::__construct() has parameter $initialMonth with no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=28,col=0::Method App\Http\Controllers\CalendarController::__construct() has parameter $initialYear with no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=28,col=0::Method App\Http\Controllers\CalendarController::__construct() has parameter $weekStartsAt with no type specified.
::error file=app/Http/Controllers/CalendarController.php,line=43,col=0::Method App\Http\Controllers\CalendarController::calculateGridStartsEnds() has no return type specified.
::error file=app/Http/Controllers/CalendarController.php,line=58,col=0::Parameter #2 $operator of method Illuminate\Database\Eloquent\Builder<App\Models\Diary>::whereMonth() expects string, int given.
::error file=app/Http/Controllers/ChatController.php,line=13,col=0::Property App\Http\Controllers\ChatMessage::$id has no type specified.
::error file=app/Http/Controllers/ChatController.php,line=15,col=0::Property App\Http\Controllers\ChatMessage::$payload has no type specified.
::error file=app/Http/Controllers/ChatController.php,line=17,col=0::Method App\Http\Controllers\ChatMessage::__construct() has parameter $id with no type specified.
::error file=app/Http/Controllers/ChatController.php,line=17,col=0::Method App\Http\Controllers\ChatMessage::__construct() has parameter $payload with no type specified.
::error file=app/Http/Controllers/ChatController.php,line=23,col=0::Method App\Http\Controllers\ChatMessage::someRandomFillFunction() has no return type specified.
::error file=app/Http/Controllers/ChatController.php,line=25,col=0::Called 'pluck' on Laravel collection, but could have been retrieved as a query.
::error file=app/Http/Controllers/ChatController.php,line=26,col=0::Called 'pluck' on Laravel collection, but could have been retrieved as a query.
::error file=app/Http/Controllers/ChatController.php,line=27,col=0::Call to static method create() on an unknown class App\Http\Controllers\Faker\Factory.
::error file=app/Http/Controllers/ChatController.php,line=102,col=0::Method App\Http\Controllers\ChatController::create() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/ChatController.php,line=102,col=0::Parameter #1 $message of event class App\Events\ChatMessageUpdated constructor expects array in App\Events\ChatMessageUpdated::dispatch(), App\Http\Controllers\ChatMessage given.
::error file=app/Http/Controllers/ChatController.php,line=102,col=0::Parameter #1 $string of function md5 expects string, int<1, max> given.
::error file=app/Http/Controllers/ChatController.php,line=133,col=0::Method App\Http\Controllers\ChatController::makeChanName() has no return type specified.
::error file=app/Http/Controllers/ChatController.php,line=133,col=0::Method App\Http\Controllers\ChatController::makeChanName() has parameter $from with no type specified.
::error file=app/Http/Controllers/ChatController.php,line=133,col=0::Method App\Http\Controllers\ChatController::makeChanName() has parameter $to with no type specified.
::error file=app/Http/Controllers/ConsultantRequestFormController.php,line=20,col=0::Access to an undefined property App\Models\User::$consultant_state.
::error file=app/Http/Controllers/ConsultantRequestFormController.php,line=22,col=0::Method App\Http\Controllers\ConsultantRequestFormController::create() should return Illuminate\View\View but returns Illuminate\Http\RedirectResponse.
::error file=app/Http/Controllers/ConsultantRequestFormController.php,line=44,col=0::Access to an undefined property App\Models\User::$consultant_state.
::error file=app/Http/Controllers/ConsultantRequestFormController.php,line=56,col=0::Access to an undefined property App\Models\User::$consultant_state.
::error file=app/Http/Controllers/DiaryController.php,line=23,col=0::Method App\Http\Controllers\DiaryController::index() should return Illuminate\Http\Response but returns Illuminate\Http\RedirectResponse.
::error file=app/Http/Controllers/DiaryController.php,line=39,col=0::Method App\Http\Controllers\DiaryController::edit() has parameter $id with no type specified.
::error file=app/Http/Controllers/DiaryController.php,line=71,col=0::Method App\Http\Controllers\DiaryController::update() should return Illuminate\Http\Response but returns Illuminate\Http\RedirectResponse.
::error file=app/Http/Controllers/FinanceController.php,line=15,col=0::Method App\Http\Controllers\FinanceController::index() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/FinanceController.php,line=24,col=0::Method App\Http\Controllers\FinanceController::create() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/FinanceController.php,line=33,col=0::Method App\Http\Controllers\FinanceController::store() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/FinanceController.php,line=42,col=0::Method App\Http\Controllers\FinanceController::show() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/FinanceController.php,line=51,col=0::Method App\Http\Controllers\FinanceController::edit() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/FinanceController.php,line=60,col=0::Method App\Http\Controllers\FinanceController::update() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/FinanceController.php,line=69,col=0::Method App\Http\Controllers\FinanceController::destroy() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/RegistrationStartController.php,line=7,col=0::Method App\Http\Controllers\RegistrationStartController::start() has no return type specified.
::error file=app/Http/Controllers/UserController.php,line=16,col=0::Method App\Http\Controllers\UserController::index() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserController.php,line=25,col=0::Method App\Http\Controllers\UserController::create() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserController.php,line=34,col=0::Method App\Http\Controllers\UserController::store() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserController.php,line=45,col=0::Method App\Http\Controllers\UserController::show() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserController.php,line=53,col=0::Method App\Http\Controllers\UserController::edit() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserController.php,line=62,col=0::Method App\Http\Controllers\UserController::update() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserController.php,line=71,col=0::Method App\Http\Controllers\UserController::destroy() should return Illuminate\Http\Response but return statement is missing.
::error file=app/Http/Controllers/UserDetailzController.php,line=40,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Http/Controllers/UserDetailzController.php,line=46,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Http/Controllers/UserDetailzController.php,line=105,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Http/Controllers/UserDetailzController.php,line=111,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Listeners/ProcessDietSelectedNotification.php,line=15,col=0::Property App\Listeners\ProcessDietSelectedNotification::$afterCommit has no type specified.
::error file=app/Livewire/BlogPost/Comment/Create.php,line=16,col=0::Property App\Livewire\BlogPost\Comment\Create::$body has no type specified.
::error file=app/Livewire/BlogPost/Comment/Create.php,line=18,col=0::Property App\Livewire\BlogPost\Comment\Create::$grade has no type specified.
::error file=app/Livewire/BlogPost/Comment/Create.php,line=20,col=0::Method App\Livewire\BlogPost\Comment\Create::render() has no return type specified.
::error file=app/Livewire/BlogPost/Comment/Create.php,line=25,col=0::Method App\Livewire\BlogPost\Comment\Create::save() has no return type specified.
::error file=app/Livewire/BlogPost/Comment/Show.php,line=12,col=0::Property App\Livewire\BlogPost\Comment\Show::$listeners has no type specified.
::error file=app/Livewire/BlogPost/Comment/Show.php,line=14,col=0::Method App\Livewire\BlogPost\Comment\Show::render() has no return type specified.
::error file=app/Livewire/BlogPost/Comment/Upvote.php,line=12,col=0::Method App\Livewire\BlogPost\Comment\Upvote::mount() has no return type specified.
::error file=app/Livewire/BlogPost/Comment/Upvote.php,line=17,col=0::Method App\Livewire\BlogPost\Comment\Upvote::render() has no return type specified.
::error file=app/Livewire/BlogPost/Comment/Upvote.php,line=33,col=0::Method App\Livewire\BlogPost\Comment\Upvote::upvote() has no return type specified.
::error file=app/Livewire/BlogPost/Comment/Upvote.php,line=52,col=0::Method App\Livewire\BlogPost\Comment\Upvote::downvote() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=15,col=0::Property App\Livewire\BlogPost\Create::$image has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=17,col=0::Property App\Livewire\BlogPost\Create::$state has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=19,col=0::Property App\Livewire\BlogPost\Create::$title has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=21,col=0::Property App\Livewire\BlogPost\Create::$description has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=23,col=0::Property App\Livewire\BlogPost\Create::$tags has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=25,col=0::Property App\Livewire\BlogPost\Create::$videoUrl has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=27,col=0::Property App\Livewire\BlogPost\Create::$listeners has no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=29,col=0::Method App\Livewire\BlogPost\Create::render() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=34,col=0::Method App\Livewire\BlogPost\Create::parentComponentTagAdded() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=40,col=0::Method App\Livewire\BlogPost\Create::parentComponentTagRemoved() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=40,col=0::Method App\Livewire\BlogPost\Create::parentComponentTagRemoved() has parameter $tag with no type specified.
::error file=app/Livewire/BlogPost/Create.php,line=47,col=0::Method App\Livewire\BlogPost\Create::draft() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=53,col=0::Method App\Livewire\BlogPost\Create::preview() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=59,col=0::Method App\Livewire\BlogPost\Create::publish() has no return type specified.
::error file=app/Livewire/BlogPost/Create.php,line=80,col=0::Method App\Livewire\BlogPost\Create::rules() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=17,col=0::Property App\Livewire\BlogPost\Edit::$image has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=19,col=0::Property App\Livewire\BlogPost\Edit::$state has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=21,col=0::Property App\Livewire\BlogPost\Edit::$title has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=23,col=0::Property App\Livewire\BlogPost\Edit::$description has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=25,col=0::Property App\Livewire\BlogPost\Edit::$tags has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=27,col=0::Property App\Livewire\BlogPost\Edit::$videoUrl has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=29,col=0::Property App\Livewire\BlogPost\Edit::$listeners has no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=31,col=0::Method App\Livewire\BlogPost\Edit::mount() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=33,col=0::Access to an undefined property App\Livewire\BlogPost\Edit::$name.
::error file=app/Livewire/BlogPost/Edit.php,line=33,col=0::Access to an undefined property App\Models\BlogPost::$name.
::error file=app/Livewire/BlogPost/Edit.php,line=38,col=0::Access to an undefined property App\Models\BlogPost::$tags.
::error file=app/Livewire/BlogPost/Edit.php,line=42,col=0::Method App\Livewire\BlogPost\Edit::parentComponentTagAdded() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=48,col=0::Method App\Livewire\BlogPost\Edit::parentComponentTagRemoved() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=48,col=0::Method App\Livewire\BlogPost\Edit::parentComponentTagRemoved() has parameter $tag with no type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=58,col=0::Method App\Livewire\BlogPost\Edit::draft() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=64,col=0::Method App\Livewire\BlogPost\Edit::preview() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=70,col=0::Method App\Livewire\BlogPost\Edit::publish() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=94,col=0::Method App\Livewire\BlogPost\Edit::render() has no return type specified.
::error file=app/Livewire/BlogPost/Edit.php,line=99,col=0::Method App\Livewire\BlogPost\Edit::rules() has no return type specified.
::error file=app/Livewire/BlogPost/Like.php,line=12,col=0::Property App\Livewire\BlogPost\Like::$isIconOnly has no type specified.
::error file=app/Livewire/BlogPost/Like.php,line=14,col=0::Method App\Livewire\BlogPost\Like::mount() has no return type specified.
::error file=app/Livewire/BlogPost/Like.php,line=19,col=0::Method App\Livewire\BlogPost\Like::render() has no return type specified.
::error file=app/Livewire/BlogPost/LikeCount.php,line=12,col=0::Property App\Livewire\BlogPost\LikeCount::$listeners has no type specified.
::error file=app/Livewire/BlogPost/LikeCount.php,line=14,col=0::Method App\Livewire\BlogPost\LikeCount::mount() has no return type specified.
::error file=app/Livewire/BlogPost/LikeCount.php,line=19,col=0::Method App\Livewire\BlogPost\LikeCount::render() has no return type specified.
::error file=app/Livewire/BlogPost/ListView.php,line=16,col=0::Property App\Livewire\BlogPost\ListView::$search has no type specified.
::error file=app/Livewire/BlogPost/ListView.php,line=18,col=0::Property App\Livewire\BlogPost\ListView::$typeFilter has no type specified.
::error file=app/Livewire/BlogPost/ListView.php,line=20,col=0::Property App\Livewire\BlogPost\ListView::$tag has no type specified.
::error file=app/Livewire/BlogPost/ListView.php,line=22,col=0::Property App\Livewire\BlogPost\ListView::$author has no type specified.
::error file=app/Livewire/BlogPost/ListView.php,line=24,col=0::Property App\Livewire\BlogPost\ListView::$queryString has no type specified.
::error file=app/Livewire/BlogPost/ListView.php,line=31,col=0::Method App\Livewire\BlogPost\ListView::render() has no return type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=9,col=0::Property App\Livewire\Chat\LastUsers::$lastChatUsers has no type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=11,col=0::Property App\Livewire\Chat\LastUsers::$activeUserId has no type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=13,col=0::Property App\Livewire\Chat\LastUsers::$curUserId has no type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=15,col=0::Property App\Livewire\Chat\LastUsers::$chanId has no type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=17,col=0::Method App\Livewire\Chat\LastUsers::render() has no return type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=22,col=0::Method App\Livewire\Chat\LastUsers::switchTo() has no return type specified.
::error file=app/Livewire/Chat/LastUsers.php,line=22,col=0::Method App\Livewire\Chat\LastUsers::switchTo() has parameter $id with no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=12,col=0::Property App\Livewire\Chat\MessageWindow::$messages has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=14,col=0::Property App\Livewire\Chat\MessageWindow::$curMessage has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=16,col=0::Property App\Livewire\Chat\MessageWindow::$curUserId has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=18,col=0::Property App\Livewire\Chat\MessageWindow::$recipientUserId has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=20,col=0::Property App\Livewire\Chat\MessageWindow::$recipientUser has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=22,col=0::Property App\Livewire\Chat\MessageWindow::$chanId has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=24,col=0::Property App\Livewire\Chat\MessageWindow::$curUser has no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=26,col=0::Method App\Livewire\Chat\MessageWindow::getListeners() has no return type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=36,col=0::Method App\Livewire\Chat\MessageWindow::notifyNewMessage() has parameter $e with no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=44,col=0::Method App\Livewire\Chat\MessageWindow::updateRecipientId() has no return type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=44,col=0::Method App\Livewire\Chat\MessageWindow::updateRecipientId() has parameter $id with no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=48,col=0::Method App\Livewire\Chat\MessageWindow::whisperTypeing() has no return type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=61,col=0::Method App\Livewire\Chat\MessageWindow::mount() has no return type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=61,col=0::Method App\Livewire\Chat\MessageWindow::mount() has parameter $recipientUserId with no type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=77,col=0::Method App\Livewire\Chat\MessageWindow::render() has no return type specified.
::error file=app/Livewire/Chat/MessageWindow.php,line=82,col=0::Method App\Livewire\Chat\MessageWindow::sendChatMessage() has no return type specified.
::error file=app/Livewire/Chat/Tracker.php,line=9,col=0::Property App\Livewire\Chat\Tracker::$showNewMessageNotifycation has no type specified.
::error file=app/Livewire/Chat/Tracker.php,line=11,col=0::Property App\Livewire\Chat\Tracker::$myMessages has no type specified.
::error file=app/Livewire/Chat/Tracker.php,line=14,col=0::Property App\Livewire\Chat\Tracker::$listeners has no type specified.
::error file=app/Livewire/Chat/Tracker.php,line=16,col=0::Method App\Livewire\Chat\Tracker::notifyNewMessage() has parameter $payload with no type specified.
::error file=app/Livewire/Chat/Tracker.php,line=22,col=0::Method App\Livewire\Chat\Tracker::render() has no return type specified.
::error file=app/Livewire/Consultant/ListConsultants.php,line=10,col=0::Method App\Livewire\Consultant\ListConsultants::render() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=32,col=0::Property App\Livewire\Consultant\RegistrationForm::$certPhotos has no type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=34,col=0::Property App\Livewire\Consultant\RegistrationForm::$tmpCertPhotos has no type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=38,col=0::Property App\Livewire\Consultant\RegistrationForm::$rules has no type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=49,col=0::Method App\Livewire\Consultant\RegistrationForm::mount() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=64,col=0::If condition is always true.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=69,col=0::Method App\Livewire\Consultant\RegistrationForm::render() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=74,col=0::Method App\Livewire\Consultant\RegistrationForm::addEducation() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=94,col=0::Method App\Livewire\Consultant\RegistrationForm::remove() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=94,col=0::Method App\Livewire\Consultant\RegistrationForm::remove() has parameter $index with no type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=107,col=0::Method App\Livewire\Consultant\RegistrationForm::save() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=161,col=0::Method App\Livewire\Consultant\RegistrationForm::deleteImg() has no return type specified.
::error file=app/Livewire/Consultant/RegistrationForm.php,line=161,col=0::Method App\Livewire\Consultant\RegistrationForm::deleteImg() has parameter $id with no type specified.
::error file=app/Livewire/Counter.php,line=9,col=0::Property App\Livewire\Counter::$count has no type specified.
::error file=app/Livewire/Counter.php,line=11,col=0::Method App\Livewire\Counter::inc() has no return type specified.
::error file=app/Livewire/Counter.php,line=16,col=0::Method App\Livewire\Counter::dec() has no return type specified.
::error file=app/Livewire/Counter.php,line=21,col=0::Method App\Livewire\Counter::render() has no return type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=11,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$daysCount has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=13,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$diary has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=15,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$curMeals has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=17,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$typeNames has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=19,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$comments has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=21,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$retireComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=23,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$breakfastComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=25,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$dinnerComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=27,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$supperComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=29,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$lunchComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=31,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$snacksComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=33,col=0::Property App\Livewire\Diary\ConsultantCommentsEdit::$totalComment has no type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=35,col=0::Method App\Livewire\Diary\ConsultantCommentsEdit::mount() has no return type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=46,col=0::Method App\Livewire\Diary\ConsultantCommentsEdit::render() has no return type specified.
::error file=app/Livewire/Diary/ConsultantCommentsEdit.php,line=58,col=0::Method App\Livewire\Diary\ConsultantCommentsEdit::save() has no return type specified.
::error file=app/Livewire/Diary/MealPhotos.php,line=17,col=0::Property App\Livewire\Diary\MealPhotos::$tmpMealPhotos has no type specified.
::error file=app/Livewire/Diary/MealPhotos.php,line=19,col=0::Method App\Livewire\Diary\MealPhotos::render() has no return type specified.
::error file=app/Livewire/Diary/MealPhotos.php,line=24,col=0::Access to an undefined property App\Models\Meal::$photos.
::error file=app/Livewire/Diary/MealPhotos.php,line=29,col=0::Method App\Livewire\Diary\MealPhotos::updatedTmpMealPhotos() has no return type specified.
::error file=app/Livewire/Diary/MealPhotos.php,line=29,col=0::Method App\Livewire\Diary\MealPhotos::updatedTmpMealPhotos() has parameter $values with no type specified.
::error file=app/Livewire/Diet/Comment/Create.php,line=16,col=0::Property App\Livewire\Diet\Comment\Create::$body has no type specified.
::error file=app/Livewire/Diet/Comment/Create.php,line=18,col=0::Property App\Livewire\Diet\Comment\Create::$grade has no type specified.
::error file=app/Livewire/Diet/Comment/Create.php,line=20,col=0::Property App\Livewire\Diet\Comment\Create::$isChecked has no type specified.
::error file=app/Livewire/Diet/Comment/Create.php,line=22,col=0::Method App\Livewire\Diet\Comment\Create::render() has no return type specified.
::error file=app/Livewire/Diet/Comment/Create.php,line=27,col=0::Method App\Livewire\Diet\Comment\Create::toggle() has no return type specified.
::error file=app/Livewire/Diet/Comment/Create.php,line=32,col=0::Method App\Livewire\Diet\Comment\Create::save() has no return type specified.
::error file=app/Livewire/Diet/Comment/Show.php,line=12,col=0::Property App\Livewire\Diet\Comment\Show::$listeners has no type specified.
::error file=app/Livewire/Diet/Comment/Show.php,line=14,col=0::Method App\Livewire\Diet\Comment\Show::render() has no return type specified.
::error file=app/Livewire/Diet/Comment/Upvote.php,line=12,col=0::Method App\Livewire\Diet\Comment\Upvote::mount() has no return type specified.
::error file=app/Livewire/Diet/Comment/Upvote.php,line=17,col=0::Method App\Livewire\Diet\Comment\Upvote::render() has no return type specified.
::error file=app/Livewire/Diet/Comment/Upvote.php,line=33,col=0::Method App\Livewire\Diet\Comment\Upvote::upvote() has no return type specified.
::error file=app/Livewire/Diet/Comment/Upvote.php,line=52,col=0::Method App\Livewire\Diet\Comment\Upvote::downvote() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=14,col=0::Property App\Livewire\Diet\Create::$name has no type specified.
::error file=app/Livewire/Diet/Create.php,line=16,col=0::Property App\Livewire\Diet\Create::$image has no type specified.
::error file=app/Livewire/Diet/Create.php,line=18,col=0::Property App\Livewire\Diet\Create::$duration has no type specified.
::error file=app/Livewire/Diet/Create.php,line=20,col=0::Property App\Livewire\Diet\Create::$state has no type specified.
::error file=app/Livewire/Diet/Create.php,line=22,col=0::Property App\Livewire\Diet\Create::$type has no type specified.
::error file=app/Livewire/Diet/Create.php,line=24,col=0::Property App\Livewire\Diet\Create::$details has no type specified.
::error file=app/Livewire/Diet/Create.php,line=26,col=0::Property App\Livewire\Diet\Create::$days has no type specified.
::error file=app/Livewire/Diet/Create.php,line=28,col=0::Property App\Livewire\Diet\Create::$copyedDay has no type specified.
::error file=app/Livewire/Diet/Create.php,line=30,col=0::Property App\Livewire\Diet\Create::$copyedDayData has no type specified.
::error file=app/Livewire/Diet/Create.php,line=32,col=0::Property App\Livewire\Diet\Create::$listeners has no type specified.
::error file=app/Livewire/Diet/Create.php,line=34,col=0::Method App\Livewire\Diet\Create::render() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=39,col=0::Method App\Livewire\Diet\Create::dayUpdated() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=39,col=0::Method App\Livewire\Diet\Create::dayUpdated() has parameter $data with no type specified.
::error file=app/Livewire/Diet/Create.php,line=39,col=0::Method App\Livewire\Diet\Create::dayUpdated() has parameter $dayIndex with no type specified.
::error file=app/Livewire/Diet/Create.php,line=44,col=0::Method App\Livewire\Diet\Create::showPreview() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=50,col=0::Method App\Livewire\Diet\Create::addToDrafts() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=56,col=0::Method App\Livewire\Diet\Create::makeCopy() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=56,col=0::Method App\Livewire\Diet\Create::makeCopy() has parameter $day with no type specified.
::error file=app/Livewire/Diet/Create.php,line=61,col=0::Method App\Livewire\Diet\Create::makePaste() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=61,col=0::Method App\Livewire\Diet\Create::makePaste() has parameter $copyToDay with no type specified.
::error file=app/Livewire/Diet/Create.php,line=67,col=0::Method App\Livewire\Diet\Create::publish() has no return type specified.
::error file=app/Livewire/Diet/Create.php,line=87,col=0::Method App\Livewire\Diet\Create::rules() has no return type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=9,col=0::Property App\Livewire\Diet\DayEdit::$day has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=11,col=0::Property App\Livewire\Diet\DayEdit::$eatingTypes has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=13,col=0::Property App\Livewire\Diet\DayEdit::$activeType has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=15,col=0::Property App\Livewire\Diet\DayEdit::$portions has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=17,col=0::Property App\Livewire\Diet\DayEdit::$name has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=19,col=0::Property App\Livewire\Diet\DayEdit::$quantity has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=21,col=0::Property App\Livewire\Diet\DayEdit::$portion has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=23,col=0::Property App\Livewire\Diet\DayEdit::$listeners has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=25,col=0::Property App\Livewire\Diet\DayEdit::$rules has no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=31,col=0::Method App\Livewire\Diet\DayEdit::render() has no return type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=36,col=0::Method App\Livewire\Diet\DayEdit::addPortion() has no return type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=36,col=0::Method App\Livewire\Diet\DayEdit::addPortion() has parameter $type with no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=52,col=0::Method App\Livewire\Diet\DayEdit::delete() has no return type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=52,col=0::Method App\Livewire\Diet\DayEdit::delete() has parameter $type with no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=52,col=0::Method App\Livewire\Diet\DayEdit::delete() has parameter $uniq with no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=64,col=0::Method App\Livewire\Diet\DayEdit::edit() has no return type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=64,col=0::Method App\Livewire\Diet\DayEdit::edit() has parameter $type with no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=64,col=0::Method App\Livewire\Diet\DayEdit::edit() has parameter $uniq with no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=83,col=0::Method App\Livewire\Diet\DayEdit::takePaste() has no return type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=83,col=0::Method App\Livewire\Diet\DayEdit::takePaste() has parameter $data with no type specified.
::error file=app/Livewire/Diet/DayEdit.php,line=83,col=0::Method App\Livewire\Diet\DayEdit::takePaste() has parameter $day with no type specified.
::error file=app/Livewire/Diet/Edit.php,line=12,col=0::Property App\Livewire\Diet\Edit::$name has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=14,col=0::Property App\Livewire\Diet\Edit::$image has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=16,col=0::Property App\Livewire\Diet\Edit::$duration has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=18,col=0::Property App\Livewire\Diet\Edit::$state has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=20,col=0::Property App\Livewire\Diet\Edit::$type has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=22,col=0::Property App\Livewire\Diet\Edit::$details has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=24,col=0::Property App\Livewire\Diet\Edit::$days has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=26,col=0::Property App\Livewire\Diet\Edit::$copyedDay has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=28,col=0::Property App\Livewire\Diet\Edit::$copyedDayData has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=30,col=0::Property App\Livewire\Diet\Edit::$listeners has no type specified.
::error file=app/Livewire/Diet/Edit.php,line=32,col=0::Method App\Livewire\Diet\Edit::mount() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=43,col=0::Method App\Livewire\Diet\Edit::render() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=48,col=0::Method App\Livewire\Diet\Edit::dayUpdated() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=48,col=0::Method App\Livewire\Diet\Edit::dayUpdated() has parameter $data with no type specified.
::error file=app/Livewire/Diet/Edit.php,line=48,col=0::Method App\Livewire\Diet\Edit::dayUpdated() has parameter $dayIndex with no type specified.
::error file=app/Livewire/Diet/Edit.php,line=53,col=0::Method App\Livewire\Diet\Edit::showPreview() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=59,col=0::Method App\Livewire\Diet\Edit::addToDrafts() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=65,col=0::Method App\Livewire\Diet\Edit::makeCopy() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=65,col=0::Method App\Livewire\Diet\Edit::makeCopy() has parameter $day with no type specified.
::error file=app/Livewire/Diet/Edit.php,line=71,col=0::Method App\Livewire\Diet\Edit::makePaste() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=71,col=0::Method App\Livewire\Diet\Edit::makePaste() has parameter $copyToDay with no type specified.
::error file=app/Livewire/Diet/Edit.php,line=81,col=0::Method App\Livewire\Diet\Edit::publish() has no return type specified.
::error file=app/Livewire/Diet/Edit.php,line=102,col=0::Method App\Livewire\Diet\Edit::rules() has no return type specified.
::error file=app/Livewire/Diet/Like.php,line=12,col=0::Property App\Livewire\Diet\Like::$isIconOnly has no type specified.
::error file=app/Livewire/Diet/Like.php,line=14,col=0::Method App\Livewire\Diet\Like::mount() has no return type specified.
::error file=app/Livewire/Diet/Like.php,line=19,col=0::Method App\Livewire\Diet\Like::render() has no return type specified.
::error file=app/Livewire/Diet/LikeCount.php,line=12,col=0::Property App\Livewire\Diet\LikeCount::$listeners has no type specified.
::error file=app/Livewire/Diet/LikeCount.php,line=14,col=0::Method App\Livewire\Diet\LikeCount::mount() has no return type specified.
::error file=app/Livewire/Diet/LikeCount.php,line=19,col=0::Method App\Livewire\Diet\LikeCount::render() has no return type specified.
::error file=app/Livewire/Diet/StartButton.php,line=16,col=0::Property App\Livewire\Diet\StartButton::$chosenDietState has no type specified.
::error file=app/Livewire/Diet/StartButton.php,line=18,col=0::Method App\Livewire\Diet\StartButton::mount() has no return type specified.
::error file=app/Livewire/Diet/StartButton.php,line=23,col=0::Method App\Livewire\Diet\StartButton::render() has no return type specified.
::error file=app/Livewire/Diet/StartButton.php,line=28,col=0::Method App\Livewire\Diet\StartButton::start() has no return type specified.
::error file=app/Livewire/Diet/StartButton.php,line=36,col=0::Method App\Livewire\Diet\StartButton::getLastState() has no return type specified.
::error file=app/Livewire/Feed/Index.php,line=9,col=0::Property App\Livewire\Feed\Index::$posts has no type specified.
::error file=app/Livewire/Feed/Index.php,line=11,col=0::Method App\Livewire\Feed\Index::render() has no return type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=14,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$first_name has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=17,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$last_name has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=20,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$email has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=23,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$gender has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=26,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$birthdate has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=29,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$country has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=32,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$city has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=35,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$lang has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=38,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$weight has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=41,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$height has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=44,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$chest_circumference has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=47,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$waist_circumference has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=50,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$hip_circumference has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=53,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$blood_pressure_up has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=56,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$blood_pressure_down has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=59,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$has_hypo has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=62,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$has_hyper has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=65,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$about_alergy has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=68,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$about_taking_pils has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=71,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$about_sport_hobbies has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=74,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$favorite_foods has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=77,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$unfavorite_foods has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=80,col=0::Property App\Livewire\Forms\ProfileEditDetailzForm::$additional_info has no type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=82,col=0::Method App\Livewire\Forms\ProfileEditDetailzForm::setDetailz() has no return type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=87,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=110,col=0::Method App\Livewire\Forms\ProfileEditDetailzForm::update() has no return type specified.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=116,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Livewire/Forms/ProfileEditDetailzForm.php,line=117,col=0::Access to an undefined property App\Models\UserDetailz::$user.
::error file=app/Livewire/MealForm.php,line=12,col=0::Property App\Livewire\MealForm::$time has no type specified.
::error file=app/Livewire/MealForm.php,line=14,col=0::Property App\Livewire\MealForm::$type has no type specified.
::error file=app/Livewire/MealForm.php,line=16,col=0::Property App\Livewire\MealForm::$satiety has no type specified.
::error file=app/Livewire/MealForm.php,line=18,col=0::Property App\Livewire\MealForm::$mood has no type specified.
::error file=app/Livewire/MealForm.php,line=20,col=0::Property App\Livewire\MealForm::$product_name has no type specified.
::error file=app/Livewire/MealForm.php,line=22,col=0::Property App\Livewire\MealForm::$portions has no type specified.
::error file=app/Livewire/MealForm.php,line=24,col=0::Property App\Livewire\MealForm::$quantity has no type specified.
::error file=app/Livewire/MealForm.php,line=26,col=0::Property App\Livewire\MealForm::$pcs has no type specified.
::error file=app/Livewire/MealForm.php,line=28,col=0::Property App\Livewire\MealForm::$unit has no type specified.
::error file=app/Livewire/MealForm.php,line=30,col=0::Property App\Livewire\MealForm::$diaryId has no type specified.
::error file=app/Livewire/MealForm.php,line=36,col=0::Property App\Livewire\MealForm::$portion has no type specified.
::error file=app/Livewire/MealForm.php,line=38,col=0::Property App\Livewire\MealForm::$rules has no type specified.
::error file=app/Livewire/MealForm.php,line=44,col=0::Property App\Livewire\MealForm::$listeners has no type specified.
::error file=app/Livewire/MealForm.php,line=46,col=0::Method App\Livewire\MealForm::mount() has no return type specified.
::error file=app/Livewire/MealForm.php,line=49,col=0::Access to an undefined property App\Models\Diary|Illuminate\Database\Eloquent\Collection<int, App\Models\Diary>::$meals.
::error file=app/Livewire/MealForm.php,line=53,col=0::Access to an undefined property App\Models\Diary|Illuminate\Database\Eloquent\Collection<int, App\Models\Diary>::$meals.
::error file=app/Livewire/MealForm.php,line=68,col=0::Method App\Livewire\MealForm::updatingType() has no return type specified.
::error file=app/Livewire/MealForm.php,line=68,col=0::Method App\Livewire\MealForm::updatingType() has parameter $value with no type specified.
::error file=app/Livewire/MealForm.php,line=70,col=0::Access to an undefined property App\Models\Diary::$meals.
::error file=app/Livewire/MealForm.php,line=76,col=0::Method App\Livewire\MealForm::render() has no return type specified.
::error file=app/Livewire/MealForm.php,line=88,col=0::Access to an undefined property App\Models\Diary::$meals.
::error file=app/Livewire/MealForm.php,line=102,col=0::Method App\Livewire\MealForm::addFoodIntake() has no return type specified.
::error file=app/Livewire/MealForm.php,line=145,col=0::Method App\Livewire\MealForm::addPortion() has no return type specified.
::error file=app/Livewire/MealForm.php,line=162,col=0::Method App\Livewire\MealForm::editPortion() has no return type specified.
::error file=app/Livewire/MealForm.php,line=162,col=0::Method App\Livewire\MealForm::editPortion() has parameter $item with no type specified.
::error file=app/Livewire/MealForm.php,line=162,col=0::Method App\Livewire\MealForm::editPortion() has parameter $key with no type specified.
::error file=app/Livewire/MealForm.php,line=173,col=0::Method App\Livewire\MealForm::delPortion() has no return type specified.
::error file=app/Livewire/MealForm.php,line=173,col=0::Method App\Livewire\MealForm::delPortion() has parameter $item with no type specified.
::error file=app/Livewire/MealForm.php,line=173,col=0::Method App\Livewire\MealForm::delPortion() has parameter $key with no type specified.
::error file=app/Livewire/MealForm.php,line=189,col=0::Method App\Livewire\MealForm::addPortionIfItFilled() has no return type specified.
::error file=app/Livewire/Plan/Accordion.php,line=12,col=0::Property App\Livewire\Plan\Accordion::$accordionState has no type specified.
::error file=app/Livewire/Plan/Accordion.php,line=14,col=0::Property App\Livewire\Plan\Accordion::$options1 has no type specified.
::error file=app/Livewire/Plan/Accordion.php,line=16,col=0::Property App\Livewire\Plan\Accordion::$options2 has no type specified.
::error file=app/Livewire/Plan/Accordion.php,line=18,col=0::Property App\Livewire\Plan\Accordion::$options3 has no type specified.
::error file=app/Livewire/Plan/Accordion.php,line=30,col=0::Method App\Livewire\Plan\Accordion::render() has no return type specified.
::error file=app/Livewire/Plan/Accordion.php,line=35,col=0::Method App\Livewire\Plan\Accordion::toggleAccordionState() has no return type specified.
::error file=app/Livewire/Plan/Accordion.php,line=35,col=0::Method App\Livewire\Plan\Accordion::toggleAccordionState() has parameter $optionName with no type specified.
::error file=app/Livewire/Plan/Accordion.php,line=45,col=0::Method App\Livewire\Plan\Accordion::unserializeOptions() has no return type specified.
::error file=app/Livewire/Plan/Accordion.php,line=45,col=0::Method App\Livewire\Plan\Accordion::unserializeOptions() has parameter $str with no type specified.
::error file=app/Livewire/Plan/Accordion.php,line=45,col=0::Method App\Livewire\Plan\Accordion::unserializeOptions() is unused.
::error file=app/Livewire/Plan/Comment/Create.php,line=16,col=0::Property App\Livewire\Plan\Comment\Create::$body has no type specified.
::error file=app/Livewire/Plan/Comment/Create.php,line=18,col=0::Property App\Livewire\Plan\Comment\Create::$grade has no type specified.
::error file=app/Livewire/Plan/Comment/Create.php,line=20,col=0::Property App\Livewire\Plan\Comment\Create::$isChecked has no type specified.
::error file=app/Livewire/Plan/Comment/Create.php,line=22,col=0::Method App\Livewire\Plan\Comment\Create::render() has no return type specified.
::error file=app/Livewire/Plan/Comment/Create.php,line=27,col=0::Method App\Livewire\Plan\Comment\Create::toggle() has no return type specified.
::error file=app/Livewire/Plan/Comment/Create.php,line=32,col=0::Method App\Livewire\Plan\Comment\Create::save() has no return type specified.
::error file=app/Livewire/Plan/Comment/Show.php,line=14,col=0::Property App\Livewire\Plan\Comment\Show::$listeners has no type specified.
::error file=app/Livewire/Plan/Comment/Show.php,line=16,col=0::Method App\Livewire\Plan\Comment\Show::render() has no return type specified.
::error file=app/Livewire/Plan/Comment/Show.php,line=21,col=0::Method App\Livewire\Plan\Comment\Show::toggleTabpanelState() has no return type specified.
::error file=app/Livewire/Plan/Comment/Show.php,line=21,col=0::Method App\Livewire\Plan\Comment\Show::toggleTabpanelState() has parameter $tabpanelName with no type specified.
::error file=app/Livewire/Plan/Comment/Upvote.php,line=12,col=0::Method App\Livewire\Plan\Comment\Upvote::mount() has no return type specified.
::error file=app/Livewire/Plan/Comment/Upvote.php,line=17,col=0::Method App\Livewire\Plan\Comment\Upvote::render() has no return type specified.
::error file=app/Livewire/Plan/Comment/Upvote.php,line=33,col=0::Method App\Livewire\Plan\Comment\Upvote::upvote() has no return type specified.
::error file=app/Livewire/Plan/Comment/Upvote.php,line=52,col=0::Method App\Livewire\Plan\Comment\Upvote::downvote() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=15,col=0::Property App\Livewire\Plan\Create::$name has no type specified.
::error file=app/Livewire/Plan/Create.php,line=17,col=0::Property App\Livewire\Plan\Create::$image has no type specified.
::error file=app/Livewire/Plan/Create.php,line=19,col=0::Property App\Livewire\Plan\Create::$duration has no type specified.
::error file=app/Livewire/Plan/Create.php,line=21,col=0::Property App\Livewire\Plan\Create::$state has no type specified.
::error file=app/Livewire/Plan/Create.php,line=23,col=0::Property App\Livewire\Plan\Create::$type has no type specified.
::error file=app/Livewire/Plan/Create.php,line=25,col=0::Property App\Livewire\Plan\Create::$details has no type specified.
::error file=app/Livewire/Plan/Create.php,line=27,col=0::Property App\Livewire\Plan\Create::$packets_count has no type specified.
::error file=app/Livewire/Plan/Create.php,line=29,col=0::Property App\Livewire\Plan\Create::$packet1_options has no type specified.
::error file=app/Livewire/Plan/Create.php,line=31,col=0::Property App\Livewire\Plan\Create::$packet2_options has no type specified.
::error file=app/Livewire/Plan/Create.php,line=33,col=0::Property App\Livewire\Plan\Create::$packet3_options has no type specified.
::error file=app/Livewire/Plan/Create.php,line=35,col=0::Property App\Livewire\Plan\Create::$packet1_options_input has no type specified.
::error file=app/Livewire/Plan/Create.php,line=37,col=0::Property App\Livewire\Plan\Create::$packet2_options_input has no type specified.
::error file=app/Livewire/Plan/Create.php,line=39,col=0::Property App\Livewire\Plan\Create::$packet3_options_input has no type specified.
::error file=app/Livewire/Plan/Create.php,line=41,col=0::Property App\Livewire\Plan\Create::$input_items_1 has no type specified.
::error file=app/Livewire/Plan/Create.php,line=43,col=0::Property App\Livewire\Plan\Create::$input_items_2 has no type specified.
::error file=app/Livewire/Plan/Create.php,line=45,col=0::Property App\Livewire\Plan\Create::$input_items_3 has no type specified.
::error file=app/Livewire/Plan/Create.php,line=47,col=0::Property App\Livewire\Plan\Create::$isVisibleDuration has no type specified.
::error file=app/Livewire/Plan/Create.php,line=49,col=0::Property App\Livewire\Plan\Create::$isVisibleState has no type specified.
::error file=app/Livewire/Plan/Create.php,line=51,col=0::Method App\Livewire\Plan\Create::render() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=56,col=0::Method App\Livewire\Plan\Create::showListDuration() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=61,col=0::Method App\Livewire\Plan\Create::showListState() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=66,col=0::Method App\Livewire\Plan\Create::toggleDuration() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=66,col=0::Method App\Livewire\Plan\Create::toggleDuration() has parameter $duration with no type specified.
::error file=app/Livewire/Plan/Create.php,line=72,col=0::Method App\Livewire\Plan\Create::toggleState() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=72,col=0::Method App\Livewire\Plan\Create::toggleState() has parameter $state with no type specified.
::error file=app/Livewire/Plan/Create.php,line=78,col=0::Method App\Livewire\Plan\Create::addPacketOption() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=78,col=0::Method App\Livewire\Plan\Create::addPacketOption() has parameter $options_type with no type specified.
::error file=app/Livewire/Plan/Create.php,line=78,col=0::Method App\Livewire\Plan\Create::addPacketOption() has parameter $options_type_input with no type specified.
::error file=app/Livewire/Plan/Create.php,line=94,col=0::Method App\Livewire\Plan\Create::publish() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=119,col=0::Method App\Livewire\Plan\Create::addToDrafts() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=125,col=0::Method App\Livewire\Plan\Create::showPreview() has no return type specified.
::error file=app/Livewire/Plan/Create.php,line=131,col=0::Method App\Livewire\Plan\Create::rules() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=15,col=0::Property App\Livewire\Plan\Edit::$name has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=17,col=0::Property App\Livewire\Plan\Edit::$image has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=19,col=0::Property App\Livewire\Plan\Edit::$duration has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=21,col=0::Property App\Livewire\Plan\Edit::$state has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=23,col=0::Property App\Livewire\Plan\Edit::$type has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=25,col=0::Property App\Livewire\Plan\Edit::$details has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=27,col=0::Property App\Livewire\Plan\Edit::$packets_count has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=29,col=0::Property App\Livewire\Plan\Edit::$packet1_options has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=31,col=0::Property App\Livewire\Plan\Edit::$packet2_options has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=33,col=0::Property App\Livewire\Plan\Edit::$packet3_options has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=35,col=0::Property App\Livewire\Plan\Edit::$packet1_options_input has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=37,col=0::Property App\Livewire\Plan\Edit::$packet2_options_input has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=39,col=0::Property App\Livewire\Plan\Edit::$packet3_options_input has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=41,col=0::Property App\Livewire\Plan\Edit::$input_items_1 has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=43,col=0::Property App\Livewire\Plan\Edit::$input_items_2 has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=45,col=0::Property App\Livewire\Plan\Edit::$input_items_3 has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=47,col=0::Property App\Livewire\Plan\Edit::$isVisibleDuration has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=49,col=0::Property App\Livewire\Plan\Edit::$isVisibleState has no type specified.
::error file=app/Livewire/Plan/Edit.php,line=51,col=0::Method App\Livewire\Plan\Edit::mount() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=99,col=0::Method App\Livewire\Plan\Edit::showListDuration() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=104,col=0::Method App\Livewire\Plan\Edit::showListState() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=109,col=0::Method App\Livewire\Plan\Edit::toggleDuration() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=109,col=0::Method App\Livewire\Plan\Edit::toggleDuration() has parameter $duration with no type specified.
::error file=app/Livewire/Plan/Edit.php,line=115,col=0::Method App\Livewire\Plan\Edit::toggleState() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=115,col=0::Method App\Livewire\Plan\Edit::toggleState() has parameter $state with no type specified.
::error file=app/Livewire/Plan/Edit.php,line=121,col=0::Method App\Livewire\Plan\Edit::addPacketOption() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=121,col=0::Method App\Livewire\Plan\Edit::addPacketOption() has parameter $options_type with no type specified.
::error file=app/Livewire/Plan/Edit.php,line=121,col=0::Method App\Livewire\Plan\Edit::addPacketOption() has parameter $options_type_input with no type specified.
::error file=app/Livewire/Plan/Edit.php,line=138,col=0::Method App\Livewire\Plan\Edit::publish() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=161,col=0::Method App\Livewire\Plan\Edit::addToDrafts() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=167,col=0::Method App\Livewire\Plan\Edit::showPreview() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=173,col=0::Method App\Livewire\Plan\Edit::render() has no return type specified.
::error file=app/Livewire/Plan/Edit.php,line=178,col=0::Method App\Livewire\Plan\Edit::rules() has no return type specified.
::error file=app/Livewire/Plan/Like/AnnouncementDetails.php,line=13,col=0::Method App\Livewire\Plan\Like\AnnouncementDetails::mount() has no return type specified.
::error file=app/Livewire/Plan/Like/AnnouncementDetails.php,line=18,col=0::Method App\Livewire\Plan\Like\AnnouncementDetails::render() has no return type specified.
::error file=app/Livewire/Plan/Like/AnnouncementFooter.php,line=13,col=0::Method App\Livewire\Plan\Like\AnnouncementFooter::mount() has no return type specified.
::error file=app/Livewire/Plan/Like/AnnouncementFooter.php,line=18,col=0::Method App\Livewire\Plan\Like\AnnouncementFooter::render() has no return type specified.
::error file=app/Livewire/Plan/LikeCount.php,line=12,col=0::Property App\Livewire\Plan\LikeCount::$listeners has no type specified.
::error file=app/Livewire/Plan/LikeCount.php,line=14,col=0::Method App\Livewire\Plan\LikeCount::mount() has no return type specified.
::error file=app/Livewire/Plan/LikeCount.php,line=19,col=0::Method App\Livewire\Plan\LikeCount::render() has no return type specified.
::error file=app/Livewire/PortionShow.php,line=9,col=0::Method App\Livewire\PortionShow::render() has no return type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=14,col=0::Property App\Livewire\ProductNutritional\Create::$name has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=16,col=0::Property App\Livewire\ProductNutritional\Create::$product_group has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=18,col=0::Property App\Livewire\ProductNutritional\Create::$image has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=20,col=0::Property App\Livewire\ProductNutritional\Create::$description has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=22,col=0::Property App\Livewire\ProductNutritional\Create::$formulations has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=24,col=0::Property App\Livewire\ProductNutritional\Create::$energy_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=26,col=0::Property App\Livewire\ProductNutritional\Create::$proteins_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=28,col=0::Property App\Livewire\ProductNutritional\Create::$fats_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=30,col=0::Property App\Livewire\ProductNutritional\Create::$carbohydrates_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=32,col=0::Property App\Livewire\ProductNutritional\Create::$portion_mass_gr has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=34,col=0::Property App\Livewire\ProductNutritional\Create::$energy_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=36,col=0::Property App\Livewire\ProductNutritional\Create::$proteins_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=38,col=0::Property App\Livewire\ProductNutritional\Create::$fats_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=40,col=0::Property App\Livewire\ProductNutritional\Create::$carbohydrates_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=42,col=0::Property App\Livewire\ProductNutritional\Create::$curProductNutritionalValue has no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=44,col=0::Method App\Livewire\ProductNutritional\Create::render() has no return type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=49,col=0::Method App\Livewire\ProductNutritional\Create::save() has no return type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=73,col=0::Method App\Livewire\ProductNutritional\Create::recalulateVals() has no return type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=73,col=0::Method App\Livewire\ProductNutritional\Create::recalulateVals() has parameter $mass with no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=92,col=0::Method App\Livewire\ProductNutritional\Create::recalulatePortionVals() has no return type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=92,col=0::Method App\Livewire\ProductNutritional\Create::recalulatePortionVals() has parameter $mass with no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=110,col=0::Method App\Livewire\ProductNutritional\Create::updated() has no return type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=110,col=0::Method App\Livewire\ProductNutritional\Create::updated() has parameter $name with no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=110,col=0::Method App\Livewire\ProductNutritional\Create::updated() has parameter $value with no type specified.
::error file=app/Livewire/ProductNutritional/Create.php,line=124,col=0::Method App\Livewire\ProductNutritional\Create::delete() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=14,col=0::Property App\Livewire\ProductNutritional\Edit::$name has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=16,col=0::Property App\Livewire\ProductNutritional\Edit::$product_group has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=18,col=0::Property App\Livewire\ProductNutritional\Edit::$image has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=20,col=0::Property App\Livewire\ProductNutritional\Edit::$description has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=22,col=0::Property App\Livewire\ProductNutritional\Edit::$formulations has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=24,col=0::Property App\Livewire\ProductNutritional\Edit::$energy_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=26,col=0::Property App\Livewire\ProductNutritional\Edit::$proteins_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=28,col=0::Property App\Livewire\ProductNutritional\Edit::$fats_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=30,col=0::Property App\Livewire\ProductNutritional\Edit::$carbohydrates_on_100gr has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=32,col=0::Property App\Livewire\ProductNutritional\Edit::$portion_mass_gr has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=34,col=0::Property App\Livewire\ProductNutritional\Edit::$energy_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=36,col=0::Property App\Livewire\ProductNutritional\Edit::$proteins_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=38,col=0::Property App\Livewire\ProductNutritional\Edit::$fats_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=40,col=0::Property App\Livewire\ProductNutritional\Edit::$carbohydrates_on_portion has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=42,col=0::Property App\Livewire\ProductNutritional\Edit::$product has no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=44,col=0::Method App\Livewire\ProductNutritional\Edit::mount() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=47,col=0::Access to an undefined property App\Models\ProductNutritionalValue::$product_group.
::error file=app/Livewire/ProductNutritional/Edit.php,line=62,col=0::Method App\Livewire\ProductNutritional\Edit::render() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=67,col=0::Method App\Livewire\ProductNutritional\Edit::save() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=94,col=0::Method App\Livewire\ProductNutritional\Edit::recalulateVals() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=94,col=0::Method App\Livewire\ProductNutritional\Edit::recalulateVals() has parameter $mass with no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=113,col=0::Method App\Livewire\ProductNutritional\Edit::recalulatePortionVals() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=113,col=0::Method App\Livewire\ProductNutritional\Edit::recalulatePortionVals() has parameter $mass with no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=131,col=0::Method App\Livewire\ProductNutritional\Edit::updated() has no return type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=131,col=0::Method App\Livewire\ProductNutritional\Edit::updated() has parameter $name with no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=131,col=0::Method App\Livewire\ProductNutritional\Edit::updated() has parameter $value with no type specified.
::error file=app/Livewire/ProductNutritional/Edit.php,line=145,col=0::Method App\Livewire\ProductNutritional\Edit::delete() has no return type specified.
::error file=app/Livewire/ProductNutritional/Index.php,line=10,col=0::Method App\Livewire\ProductNutritional\Index::render() has no return type specified.
::error file=app/Livewire/Profile/CircumferenceChart.php,line=13,col=0::Property App\Livewire\Profile\CircumferenceChart::$listeners has no type specified.
::error file=app/Livewire/Profile/CircumferenceChart.php,line=15,col=0::Method App\Livewire\Profile\CircumferenceChart::render() has no return type specified.
::error file=app/Livewire/Profile/CircumferenceChart.php,line=17,col=0::Called 'last' on Laravel collection, but could have been retrieved as a query.
::error file=app/Livewire/Profile/DescriptionForm.php,line=10,col=0::Property App\Livewire\Profile\DescriptionForm::$description has no type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=12,col=0::Property App\Livewire\Profile\DescriptionForm::$user has no type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=14,col=0::Method App\Livewire\Profile\DescriptionForm::mount() has no return type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=20,col=0::Method App\Livewire\Profile\DescriptionForm::updatedDescription() has no return type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=20,col=0::Method App\Livewire\Profile\DescriptionForm::updatedDescription() has parameter $value with no type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=28,col=0::Method App\Livewire\Profile\DescriptionForm::render() has no return type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=33,col=0::Method App\Livewire\Profile\DescriptionForm::initDetailzIfNeeded() has no return type specified.
::error file=app/Livewire/Profile/DescriptionForm.php,line=47,col=0::Call to function is_null() with int will always evaluate to false.
::error file=app/Livewire/Profile/EditDetailzForm.php,line=28,col=0::Method App\Livewire\Profile\EditDetailzForm::mount() has no return type specified.
::error file=app/Livewire/Profile/EditDetailzForm.php,line=34,col=0::Method App\Livewire\Profile\EditDetailzForm::updatePassword() has no return type specified.
::error file=app/Livewire/Profile/EditDetailzForm.php,line=57,col=0::Method App\Livewire\Profile\EditDetailzForm::refineDetailz() has no return type specified.
::error file=app/Livewire/Profile/EditDetailzForm.php,line=62,col=0::Method App\Livewire\Profile\EditDetailzForm::render() has no return type specified.
::error file=app/Livewire/Profile/PhotoForm.php,line=29,col=0::Property App\Livewire\Profile\PhotoForm::$isOnline has no type specified.
::error file=app/Livewire/Profile/PhotoForm.php,line=31,col=0::Property App\Livewire\Profile\PhotoForm::$user has no type specified.
::error file=app/Livewire/Profile/PhotoForm.php,line=73,col=0::Method App\Livewire\Profile\PhotoForm::updatedPhoto() has no return type specified.
::error file=app/Livewire/Profile/PhotoForm.php,line=73,col=0::Method App\Livewire\Profile\PhotoForm::updatedPhoto() has parameter $newPhoto with no type specified.
::error file=app/Livewire/Profile/PhotoForm.php,line=102,col=0::Method App\Livewire\Profile\PhotoForm::render() has no return type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=10,col=0::Property App\Livewire\Profile\ShowDetailz::$user has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=12,col=0::Property App\Livewire\Profile\ShowDetailz::$userDetailzAttributes has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=14,col=0::Property App\Livewire\Profile\ShowDetailz::$regFormKeys has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=16,col=0::Property App\Livewire\Profile\ShowDetailz::$userDetailz has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=18,col=0::Property App\Livewire\Profile\ShowDetailz::$publicity has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=20,col=0::Property App\Livewire\Profile\ShowDetailz::$is_bedtime_fillable has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=22,col=0::Property App\Livewire\Profile\ShowDetailz::$is_mood_fillable has no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=24,col=0::Method App\Livewire\Profile\ShowDetailz::mount() has no return type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=31,col=0::Method App\Livewire\Profile\ShowDetailz::render() has no return type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=36,col=0::Method App\Livewire\Profile\ShowDetailz::editAction() has no return type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=41,col=0::Method App\Livewire\Profile\ShowDetailz::updated() has parameter $name with no type specified.
::error file=app/Livewire/Profile/ShowDetailz.php,line=41,col=0::Method App\Livewire\Profile\ShowDetailz::updated() has parameter $value with no type specified.
::error file=app/Livewire/Profile/WeightChart.php,line=13,col=0::Property App\Livewire\Profile\WeightChart::$listeners has no type specified.
::error file=app/Livewire/Profile/WeightChart.php,line=15,col=0::Method App\Livewire\Profile\WeightChart::render() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Create.php,line=16,col=0::Property App\Livewire\Recipe\Comment\Create::$body has no type specified.
::error file=app/Livewire/Recipe/Comment/Create.php,line=18,col=0::Property App\Livewire\Recipe\Comment\Create::$grade has no type specified.
::error file=app/Livewire/Recipe/Comment/Create.php,line=20,col=0::Property App\Livewire\Recipe\Comment\Create::$isChecked has no type specified.
::error file=app/Livewire/Recipe/Comment/Create.php,line=22,col=0::Method App\Livewire\Recipe\Comment\Create::render() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Create.php,line=27,col=0::Method App\Livewire\Recipe\Comment\Create::toggle() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Create.php,line=32,col=0::Method App\Livewire\Recipe\Comment\Create::save() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Show.php,line=14,col=0::Property App\Livewire\Recipe\Comment\Show::$listeners has no type specified.
::error file=app/Livewire/Recipe/Comment/Show.php,line=16,col=0::Method App\Livewire\Recipe\Comment\Show::render() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Show.php,line=21,col=0::Method App\Livewire\Recipe\Comment\Show::toggleTabpanelState() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Show.php,line=21,col=0::Method App\Livewire\Recipe\Comment\Show::toggleTabpanelState() has parameter $tabpanelName with no type specified.
::error file=app/Livewire/Recipe/Comment/Show.php,line=23,col=0::Method Illuminate\Support\Collection<int,(int|string)>::map() invoked with 2 parameters, 1 required.
::error file=app/Livewire/Recipe/Comment/Upvote.php,line=12,col=0::Method App\Livewire\Recipe\Comment\Upvote::mount() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Upvote.php,line=17,col=0::Method App\Livewire\Recipe\Comment\Upvote::render() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Upvote.php,line=33,col=0::Method App\Livewire\Recipe\Comment\Upvote::upvote() has no return type specified.
::error file=app/Livewire/Recipe/Comment/Upvote.php,line=52,col=0::Method App\Livewire\Recipe\Comment\Upvote::downvote() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=16,col=0::Property App\Livewire\Recipe\Create::$image has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=18,col=0::Property App\Livewire\Recipe\Create::$state has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=20,col=0::Property App\Livewire\Recipe\Create::$state_ingredient has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=22,col=0::Property App\Livewire\Recipe\Create::$state_article has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=24,col=0::Property App\Livewire\Recipe\Create::$tags has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=26,col=0::Property App\Livewire\Recipe\Create::$title has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=28,col=0::Property App\Livewire\Recipe\Create::$type has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=30,col=0::Property App\Livewire\Recipe\Create::$video_url has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=32,col=0::Property App\Livewire\Recipe\Create::$cooking_time has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=34,col=0::Property App\Livewire\Recipe\Create::$description has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=36,col=0::Property App\Livewire\Recipe\Create::$steps has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=38,col=0::Property App\Livewire\Recipe\Create::$ingredients has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=40,col=0::Property App\Livewire\Recipe\Create::$ingredients_name has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=42,col=0::Property App\Livewire\Recipe\Create::$ingredients_portion has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=44,col=0::Property App\Livewire\Recipe\Create::$ingredients_unit has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=46,col=0::Property App\Livewire\Recipe\Create::$state_row has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=48,col=0::Property App\Livewire\Recipe\Create::$listeners has no type specified.
::error file=app/Livewire/Recipe/Create.php,line=67,col=0::Method App\Livewire\Recipe\Create::removeIngredient() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=67,col=0::Method App\Livewire\Recipe\Create::removeIngredient() has parameter $i with no type specified.
::error file=app/Livewire/Recipe/Create.php,line=74,col=0::Method App\Livewire\Recipe\Create::addStep() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=79,col=0::Method App\Livewire\Recipe\Create::removeStep() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=79,col=0::Method App\Livewire\Recipe\Create::removeStep() has parameter $i with no type specified.
::error file=app/Livewire/Recipe/Create.php,line=94,col=0::Method App\Livewire\Recipe\Create::parentComponentTagAdded() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=101,col=0::Method App\Livewire\Recipe\Create::parentComponentTagRemoved() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=101,col=0::Method App\Livewire\Recipe\Create::parentComponentTagRemoved() has parameter $tag with no type specified.
::error file=app/Livewire/Recipe/Create.php,line=109,col=0::Method App\Livewire\Recipe\Create::draft() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=115,col=0::Method App\Livewire\Recipe\Create::preview() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=123,col=0::Method App\Livewire\Recipe\Create::publish() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=148,col=0::Method App\Livewire\Recipe\Create::render() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=153,col=0::Method App\Livewire\Recipe\Create::rules() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=165,col=0::Method App\Livewire\Recipe\Create::transformSteps() has no return type specified.
::error file=app/Livewire/Recipe/Create.php,line=165,col=0::Method App\Livewire\Recipe\Create::transformSteps() has parameter $steps with no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=16,col=0::Property App\Livewire\Recipe\Edit::$image has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=18,col=0::Property App\Livewire\Recipe\Edit::$state has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=20,col=0::Property App\Livewire\Recipe\Edit::$state_ingredient has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=22,col=0::Property App\Livewire\Recipe\Edit::$state_article has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=24,col=0::Property App\Livewire\Recipe\Edit::$type has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=26,col=0::Property App\Livewire\Recipe\Edit::$tags has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=28,col=0::Property App\Livewire\Recipe\Edit::$title has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=30,col=0::Property App\Livewire\Recipe\Edit::$video_url has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=32,col=0::Property App\Livewire\Recipe\Edit::$cooking_time has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=34,col=0::Property App\Livewire\Recipe\Edit::$description has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=36,col=0::Property App\Livewire\Recipe\Edit::$steps has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=38,col=0::Property App\Livewire\Recipe\Edit::$ingredients has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=40,col=0::Property App\Livewire\Recipe\Edit::$ingredients_name has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=42,col=0::Property App\Livewire\Recipe\Edit::$ingredients_portion has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=44,col=0::Property App\Livewire\Recipe\Edit::$ingredients_unit has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=46,col=0::Property App\Livewire\Recipe\Edit::$state_row has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=48,col=0::Property App\Livewire\Recipe\Edit::$listeners has no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=50,col=0::Method App\Livewire\Recipe\Edit::mount() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=52,col=0::Access to an undefined property App\Livewire\Recipe\Edit::$name.
::error file=app/Livewire/Recipe/Edit.php,line=52,col=0::Access to an undefined property App\Models\Recipe::$name.
::error file=app/Livewire/Recipe/Edit.php,line=61,col=0::Access to an undefined property App\Models\Recipe::$tags.
::error file=app/Livewire/Recipe/Edit.php,line=72,col=0::Method App\Livewire\Recipe\Edit::addIngredient() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=82,col=0::Method App\Livewire\Recipe\Edit::removeIngredient() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=82,col=0::Method App\Livewire\Recipe\Edit::removeIngredient() has parameter $i with no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=89,col=0::Method App\Livewire\Recipe\Edit::addStep() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=94,col=0::Method App\Livewire\Recipe\Edit::removeStep() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=94,col=0::Method App\Livewire\Recipe\Edit::removeStep() has parameter $i with no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=114,col=0::Method App\Livewire\Recipe\Edit::parentComponentTagAdded() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=119,col=0::Method App\Livewire\Recipe\Edit::parentComponentTagRemoved() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=119,col=0::Method App\Livewire\Recipe\Edit::parentComponentTagRemoved() has parameter $tag with no type specified.
::error file=app/Livewire/Recipe/Edit.php,line=125,col=0::Method App\Livewire\Recipe\Edit::draft() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=131,col=0::Method App\Livewire\Recipe\Edit::preview() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=137,col=0::Method App\Livewire\Recipe\Edit::publish() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=160,col=0::Method App\Livewire\Recipe\Edit::render() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=165,col=0::Method App\Livewire\Recipe\Edit::rules() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=177,col=0::Method App\Livewire\Recipe\Edit::transformSteps() has no return type specified.
::error file=app/Livewire/Recipe/Edit.php,line=177,col=0::Method App\Livewire\Recipe\Edit::transformSteps() has parameter $steps with no type specified.
::error file=app/Livewire/Recipe/Like.php,line=12,col=0::Property App\Livewire\Recipe\Like::$isIconOnly has no type specified.
::error file=app/Livewire/Recipe/Like.php,line=14,col=0::Method App\Livewire\Recipe\Like::mount() has no return type specified.
::error file=app/Livewire/Recipe/Like.php,line=19,col=0::Method App\Livewire\Recipe\Like::render() has no return type specified.
::error file=app/Livewire/Recipe/LikeCount.php,line=12,col=0::Property App\Livewire\Recipe\LikeCount::$listeners has no type specified.
::error file=app/Livewire/Recipe/LikeCount.php,line=14,col=0::Method App\Livewire\Recipe\LikeCount::mount() has no return type specified.
::error file=app/Livewire/Recipe/LikeCount.php,line=19,col=0::Method App\Livewire\Recipe\LikeCount::render() has no return type specified.
::error file=app/Livewire/Recipe/ListView.php,line=16,col=0::Property App\Livewire\Recipe\ListView::$search has no type specified.
::error file=app/Livewire/Recipe/ListView.php,line=18,col=0::Property App\Livewire\Recipe\ListView::$typeFilter has no type specified.
::error file=app/Livewire/Recipe/ListView.php,line=20,col=0::Property App\Livewire\Recipe\ListView::$tag has no type specified.
::error file=app/Livewire/Recipe/ListView.php,line=22,col=0::Property App\Livewire\Recipe\ListView::$author has no type specified.
::error file=app/Livewire/Recipe/ListView.php,line=24,col=0::Property App\Livewire\Recipe\ListView::$queryString has no type specified.
::error file=app/Livewire/Recipe/ListView.php,line=31,col=0::Method App\Livewire\Recipe\ListView::render() has no return type specified.
::error file=app/Livewire/Recipe/ListView.php,line=63,col=0::Method App\Livewire\Recipe\ListView::getTagsCollection() has no return type specified.
::error file=app/Livewire/Recipe/ListView.php,line=68,col=0::Access to an undefined property App\Models\Recipe::$tags.
::error file=app/Livewire/Registration/Step1.php,line=23,col=0::Property App\Livewire\Registration\Step1::$step has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=25,col=0::Property App\Livewire\Registration\Step1::$first_name has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=27,col=0::Property App\Livewire\Registration\Step1::$last_name has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=29,col=0::Property App\Livewire\Registration\Step1::$email has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=31,col=0::Property App\Livewire\Registration\Step1::$password has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=33,col=0::Property App\Livewire\Registration\Step1::$password_confirmation has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=35,col=0::Property App\Livewire\Registration\Step1::$birthdate has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=37,col=0::Property App\Livewire\Registration\Step1::$gender has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=39,col=0::Property App\Livewire\Registration\Step1::$country has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=41,col=0::Property App\Livewire\Registration\Step1::$city has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=43,col=0::Property App\Livewire\Registration\Step1::$lang has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=45,col=0::Property App\Livewire\Registration\Step1::$weight has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=47,col=0::Property App\Livewire\Registration\Step1::$height has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=49,col=0::Property App\Livewire\Registration\Step1::$chest_circumference has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=51,col=0::Property App\Livewire\Registration\Step1::$waist_circumference has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=53,col=0::Property App\Livewire\Registration\Step1::$hip_circumference has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=55,col=0::Property App\Livewire\Registration\Step1::$blood_pressure_up has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=57,col=0::Property App\Livewire\Registration\Step1::$blood_pressure_down has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=59,col=0::Property App\Livewire\Registration\Step1::$has_hypo has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=61,col=0::Property App\Livewire\Registration\Step1::$has_hyper has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=63,col=0::Property App\Livewire\Registration\Step1::$about_alergy has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=65,col=0::Property App\Livewire\Registration\Step1::$about_taking_pils has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=67,col=0::Property App\Livewire\Registration\Step1::$about_sport_hobbies has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=69,col=0::Property App\Livewire\Registration\Step1::$favorite_foods has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=71,col=0::Property App\Livewire\Registration\Step1::$unfavorite_foods has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=73,col=0::Property App\Livewire\Registration\Step1::$additional_info has no type specified.
::error file=app/Livewire/Registration/Step1.php,line=75,col=0::Method App\Livewire\Registration\Step1::mount() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=75,col=0::Method App\Livewire\Registration\Step1::mount() has parameter $step with no type specified.
::error file=app/Livewire/Registration/Step1.php,line=82,col=0::Method App\Livewire\Registration\Step1::render() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=88,col=0::Method App\Livewire\Registration\Step1::nextStep() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=109,col=0::Method App\Livewire\Registration\Step1::skipStep() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=126,col=0::Method App\Livewire\Registration\Step1::goBack() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=128,col=0::Binary operation "-" between non-falsy-string and 1 results in an error.
::error file=app/Livewire/Registration/Step1.php,line=139,col=0::Method App\Livewire\Registration\Step1::finishRegistretion() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=160,col=0::Method App\Livewire\Registration\Step1::getValidateRules() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=160,col=0::Method App\Livewire\Registration\Step1::getValidateRules() has parameter $key with no type specified.
::error file=app/Livewire/Registration/Step1.php,line=202,col=0::Method App\Livewire\Registration\Step1::getValidateData() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=202,col=0::Method App\Livewire\Registration\Step1::getValidateData() has parameter $key with no type specified.
::error file=app/Livewire/Registration/Step1.php,line=245,col=0::Method App\Livewire\Registration\Step1::getNextStep() has no return type specified.
::error file=app/Livewire/Registration/Step1.php,line=247,col=0::Binary operation "+" between non-falsy-string and 1 results in an error.
::error file=app/Livewire/TagsComponent.php,line=12,col=0::Property App\Livewire\TagsComponent::$tags has no type specified.
::error file=app/Livewire/TagsComponent.php,line=14,col=0::Property App\Livewire\TagsComponent::$parentComponent has no type specified.
::error file=app/Livewire/TagsComponent.php,line=18,col=0::Method App\Livewire\TagsComponent::mount() has no return type specified.
::error file=app/Livewire/TagsComponent.php,line=18,col=0::Method App\Livewire\TagsComponent::mount() has parameter $parentComponent with no type specified.
::error file=app/Livewire/TagsComponent.php,line=47,col=0::Method App\Livewire\TagsComponent::render() has no return type specified.
::error file=app/Livewire/User/AddCircumference.php,line=16,col=0::Property App\Livewire\User\AddCircumference::$chest_circumference has no type specified.
::error file=app/Livewire/User/AddCircumference.php,line=18,col=0::Property App\Livewire\User\AddCircumference::$waist_circumference has no type specified.
::error file=app/Livewire/User/AddCircumference.php,line=20,col=0::Property App\Livewire\User\AddCircumference::$hip_circumference has no type specified.
::error file=app/Livewire/User/AddCircumference.php,line=22,col=0::Method App\Livewire\User\AddCircumference::mount() has no return type specified.
::error file=app/Livewire/User/AddCircumference.php,line=27,col=0::Method App\Livewire\User\AddCircumference::render() has no return type specified.
::error file=app/Livewire/User/AddCircumference.php,line=32,col=0::Method App\Livewire\User\AddCircumference::add() has no return type specified.
::error file=app/Livewire/User/AddWeight.php,line=14,col=0::Property App\Livewire\User\AddWeight::$weight has no type specified.
::error file=app/Livewire/User/AddWeight.php,line=16,col=0::Method App\Livewire\User\AddWeight::mount() has no return type specified.
::error file=app/Livewire/User/AddWeight.php,line=21,col=0::Method App\Livewire\User\AddWeight::render() has no return type specified.
::error file=app/Livewire/User/AddWeight.php,line=26,col=0::Method App\Livewire\User\AddWeight::add() has no return type specified.
::error file=app/Models/BlogPost.php,line=22,col=0::Method App\Models\BlogPost::tags() has no return type specified.
::error file=app/Models/BlogPost.php,line=27,col=0::Method App\Models\BlogPost::author() has no return type specified.
::error file=app/Models/BlogPost.php,line=40,col=0::Method App\Models\BlogPost::comments() has no return type specified.
::error file=app/Models/BlogPost.php,line=54,col=0::Method App\Models\BlogPost::isLiked() should return bool but returns int.
::error file=app/Models/BlogPost.php,line=70,col=0::Method App\Models\BlogPost::scopeNoEagerLoads() has no return type specified.
::error file=app/Models/BlogPost.php,line=70,col=0::Method App\Models\BlogPost::scopeNoEagerLoads() has parameter $query with no type specified.
::error file=app/Models/BlogPost.php,line=75,col=0::Method App\Models\BlogPost::scopeContainsTag() has invalid return type App\Models\Builder.
::error file=app/Models/BlogPost.php,line=75,col=0::Method App\Models\BlogPost::scopeContainsTag() has parameter $query with no type specified.
::error file=app/Models/BlogPost.php,line=75,col=0::Method App\Models\BlogPost::scopeContainsTag() has parameter $tagString with no type specified.
::error file=app/Models/BlogPost.php,line=77,col=0::Call to static method of() on an unknown class App\Models\Str.
::error file=app/Models/BlogPostComment.php,line=13,col=0::Method App\Models\BlogPostComment::author() has no return type specified.
::error file=app/Models/BlogPostComment.php,line=18,col=0::Method App\Models\BlogPostComment::blog_post() has no return type specified.
::error file=app/Models/BlogPostComment.php,line=32,col=0::Method App\Models\BlogPostComment::isUpVoted() should return bool but returns int.
::error file=app/Models/BlogPostComment.php,line=45,col=0::Method App\Models\BlogPostComment::isDownVoted() should return bool but returns int.
::error file=app/Models/BlogPostCommentUpvote.php,line=18,col=0::Method App\Models\BlogPostCommentUpvote::author() has no return type specified.
::error file=app/Models/BlogPostCommentUpvote.php,line=23,col=0::Method App\Models\BlogPostCommentUpvote::blog_post_comment() has no return type specified.
::error file=app/Models/BlogPostCommentUpvote.php,line=28,col=0::Method App\Models\BlogPostCommentUpvote::scopeForBlogPostCommentsUpVote() has no return type specified.
::error file=app/Models/BlogPostCommentUpvote.php,line=28,col=0::Method App\Models\BlogPostCommentUpvote::scopeForBlogPostCommentsUpVote() has parameter $query with no type specified.
::error file=app/Models/BlogPostCommentUpvote.php,line=33,col=0::Method App\Models\BlogPostCommentUpvote::scopeForBlogPostCommentsDownVote() has no return type specified.
::error file=app/Models/BlogPostCommentUpvote.php,line=33,col=0::Method App\Models\BlogPostCommentUpvote::scopeForBlogPostCommentsDownVote() has parameter $query with no type specified.
::error file=app/Models/BlogPostLike.php,line=16,col=0::Method App\Models\BlogPostLike::scopeForBlogPost() has no return type specified.
::error file=app/Models/BlogPostLike.php,line=16,col=0::Method App\Models\BlogPostLike::scopeForBlogPost() has parameter $query with no type specified.
::error file=app/Models/Chat.php,line=14,col=0::Method App\Models\Chat::scopeWithLastUserMessage() has no return type specified.
::error file=app/Models/Chat.php,line=23,col=0::Method App\Models\Chat::scopeWithLastTenMessages() has no return type specified.
::error file=app/Models/Chat.php,line=36,col=0::Method App\Models\Chat::scopeWithLastMessage() has no return type specified.
::error file=app/Models/ChosenDiet.php,line=20,col=0::Method App\Models\ChosenDiet::getActorId() has no return type specified.
::error file=app/Models/ChosenDiet.php,line=25,col=0::Method App\Models\ChosenDiet::user() has no return type specified.
::error file=app/Models/ChosenDiet.php,line=30,col=0::Method App\Models\ChosenDiet::diet() has no return type specified.
::error file=app/Models/ChosenDiet.php,line=35,col=0::Method App\Models\ChosenDiet::getGraph() has no return type specified.
::error file=app/Models/ChosenDiet.php,line=40,col=0::Method App\Models\ChosenDiet::saveBeforeTransition() has no return type specified.
::error file=app/Models/ChosenPlan.php,line=12,col=0::Method App\Models\ChosenPlan::user() has no return type specified.
::error file=app/Models/CircumferenceMeasure.php,line=14,col=0::Method App\Models\CircumferenceMeasure::user() has no return type specified.
::error file=app/Models/CommentUpvote.php,line=18,col=0::Method App\Models\CommentUpvote::plan_comment() has no return type specified.
::error file=app/Models/CommentUpvote.php,line=23,col=0::Method App\Models\CommentUpvote::author() has no return type specified.
::error file=app/Models/CommentUpvote.php,line=28,col=0::Method App\Models\CommentUpvote::scopeForPlanCommentsUpVote() has no return type specified.
::error file=app/Models/CommentUpvote.php,line=28,col=0::Method App\Models\CommentUpvote::scopeForPlanCommentsUpVote() has parameter $query with no type specified.
::error file=app/Models/CommentUpvote.php,line=33,col=0::Method App\Models\CommentUpvote::scopeForPlanCommentsDownVote() has no return type specified.
::error file=app/Models/CommentUpvote.php,line=33,col=0::Method App\Models\CommentUpvote::scopeForPlanCommentsDownVote() has parameter $query with no type specified.
::error file=app/Models/ConsultantEducation.php,line=14,col=0::Method App\Models\ConsultantEducation::user() has no return type specified.
::error file=app/Models/Diary.php,line=16,col=0::Method App\Models\Diary::user() has no return type specified.
::error file=app/Models/Diary.php,line=23,col=0::Method App\Models\Diary::meals() has no return type specified.
::error file=app/Models/Diary.php,line=28,col=0::Method App\Models\Diary::scopeUserToDayItem() has no return type specified.
::error file=app/Models/Diary.php,line=28,col=0::Method App\Models\Diary::scopeUserToDayItem() has parameter $query with no type specified.
::error file=app/Models/Diary.php,line=28,col=0::Method App\Models\Diary::scopeUserToDayItem() has parameter $userId with no type specified.
::error file=app/Models/Diary.php,line=35,col=0::Method App\Models\Diary::consultant_comments() has no return type specified.
::error file=app/Models/Diet.php,line=23,col=0::Property App\Models\Diet::$allowedDietTypes has no type specified.
::error file=app/Models/Diet.php,line=30,col=0::Method App\Models\Diet::author() has no return type specified.
::error file=app/Models/Diet.php,line=43,col=0::Method App\Models\Diet::comments() has no return type specified.
::error file=app/Models/Diet.php,line=56,col=0::Method App\Models\Diet::isLiked() should return bool but returns int.
::error file=app/Models/Diet.php,line=89,col=0::Method App\Models\Diet::choses() has no return type specified.
::error file=app/Models/Diet.php,line=94,col=0::Method App\Models\Diet::scopeDurationMin() has parameter $days with no type specified.
::error file=app/Models/Diet.php,line=99,col=0::Method App\Models\Diet::scopeDurationMax() has parameter $days with no type specified.
::error file=app/Models/Diet.php,line=104,col=0::Method App\Models\Diet::scopeInvolvedMin() has parameter $number with no type specified.
::error file=app/Models/Diet.php,line=109,col=0::Method App\Models\Diet::scopeInvolvedMax() has parameter $number with no type specified.
::error file=app/Models/Diet.php,line=114,col=0::Method App\Models\Diet::scopeContainsType() has parameter $types with no type specified.
::error file=app/Models/Diet.php,line=130,col=0::Method App\Models\Diet::unserializeOptionsArr() has no return type specified.
::error file=app/Models/Diet.php,line=130,col=0::Method App\Models\Diet::unserializeOptionsArr() has parameter $str with no type specified.
::error file=app/Models/DietComment.php,line=13,col=0::Method App\Models\DietComment::author() has no return type specified.
::error file=app/Models/DietComment.php,line=18,col=0::Method App\Models\DietComment::diet() has no return type specified.
::error file=app/Models/DietComment.php,line=31,col=0::Method App\Models\DietComment::isUpVoted() should return bool but returns int.
::error file=app/Models/DietComment.php,line=44,col=0::Method App\Models\DietComment::isDownVoted() should return bool but returns int.
::error file=app/Models/DietCommentUpvote.php,line=18,col=0::Method App\Models\DietCommentUpvote::author() has no return type specified.
::error file=app/Models/DietCommentUpvote.php,line=23,col=0::Method App\Models\DietCommentUpvote::diet_comment() has no return type specified.
::error file=app/Models/DietCommentUpvote.php,line=28,col=0::Method App\Models\DietCommentUpvote::scopeForDietCommentsUpVote() has no return type specified.
::error file=app/Models/DietCommentUpvote.php,line=28,col=0::Method App\Models\DietCommentUpvote::scopeForDietCommentsUpVote() has parameter $query with no type specified.
::error file=app/Models/DietCommentUpvote.php,line=33,col=0::Method App\Models\DietCommentUpvote::scopeForDietCommentsDownVote() has no return type specified.
::error file=app/Models/DietCommentUpvote.php,line=33,col=0::Method App\Models\DietCommentUpvote::scopeForDietCommentsDownVote() has parameter $query with no type specified.
::error file=app/Models/DietLike.php,line=16,col=0::Method App\Models\DietLike::scopeForDiet() has no return type specified.
::error file=app/Models/DietLike.php,line=16,col=0::Method App\Models\DietLike::scopeForDiet() has parameter $query with no type specified.
::error file=app/Models/Meal.php,line=14,col=0::Method App\Models\Meal::user() has no return type specified.
::error file=app/Models/Meal.php,line=21,col=0::Method App\Models\Meal::diary() has no return type specified.
::error file=app/Models/Meal.php,line=26,col=0::Method App\Models\Meal::portions() has no return type specified.
::error file=app/Models/Meal.php,line=31,col=0::Method App\Models\Meal::photos() has no return type specified.
::error file=app/Models/Plan.php,line=36,col=0::Property App\Models\Plan::$presenter has no type specified.
::error file=app/Models/Plan.php,line=59,col=0::Method App\Models\Plan::author() has no return type specified.
::error file=app/Models/Plan.php,line=64,col=0::Method App\Models\Plan::comments() has no return type specified.
::error file=app/Models/Plan.php,line=77,col=0::Method App\Models\Plan::isLiked() should return bool but returns int.
::error file=app/Models/Plan.php,line=137,col=0::Method App\Models\Plan::scopeNegativeComments() has no return type specified.
::error file=app/Models/Plan.php,line=142,col=0::Method App\Models\Plan::scopePositiveComments() has no return type specified.
::error file=app/Models/Plan.php,line=147,col=0::Method App\Models\Plan::unserializeOptionsObj() has no return type specified.
::error file=app/Models/Plan.php,line=147,col=0::Method App\Models\Plan::unserializeOptionsObj() has parameter $str with no type specified.
::error file=app/Models/Plan.php,line=147,col=0::Method App\Models\Plan::unserializeOptionsObj() is unused.
::error file=app/Models/Plan.php,line=156,col=0::Method App\Models\Plan::unserializeOptionsArr() has no return type specified.
::error file=app/Models/Plan.php,line=156,col=0::Method App\Models\Plan::unserializeOptionsArr() has parameter $str with no type specified.
::error file=app/Models/Plan.php,line=156,col=0::Method App\Models\Plan::unserializeOptionsArr() is unused.
::error file=app/Models/PlanComment.php,line=13,col=0::Method App\Models\PlanComment::author() has no return type specified.
::error file=app/Models/PlanComment.php,line=18,col=0::Method App\Models\PlanComment::plan() has no return type specified.
::error file=app/Models/PlanComment.php,line=31,col=0::Method App\Models\PlanComment::isUpVoted() should return bool but returns int.
::error file=app/Models/PlanComment.php,line=44,col=0::Method App\Models\PlanComment::isDownVoted() should return bool but returns int.
::error file=app/Models/PlanLike.php,line=16,col=0::Method App\Models\PlanLike::scopeForPlan() has no return type specified.
::error file=app/Models/PlanLike.php,line=16,col=0::Method App\Models\PlanLike::scopeForPlan() has parameter $query with no type specified.
::error file=app/Models/Portion.php,line=14,col=0::Method App\Models\Portion::user() has no return type specified.
::error file=app/Models/ProductGroup.php,line=14,col=0::Method App\Models\ProductGroup::product_nutritional_value() has no return type specified.
::error file=app/Models/ProductNutritionalValue.php,line=14,col=0::Method App\Models\ProductNutritionalValue::product_group() has no return type specified.
::error file=app/Models/Recipe.php,line=53,col=0::Method App\Models\Recipe::tags() has no return type specified.
::error file=app/Models/Recipe.php,line=76,col=0::Method App\Models\Recipe::comments() has no return type specified.
::error file=app/Models/Recipe.php,line=86,col=0::Method App\Models\Recipe::scopeNegativeComments() has no return type specified.
::error file=app/Models/Recipe.php,line=91,col=0::Method App\Models\Recipe::scopePositiveComments() has no return type specified.
::error file=app/Models/Recipe.php,line=100,col=0::Method App\Models\Recipe::isLiked() should return bool but returns int.
::error file=app/Models/Recipe.php,line=116,col=0::Method App\Models\Recipe::scopeContainsTag() has parameter $query with no type specified.
::error file=app/Models/Recipe.php,line=116,col=0::Method App\Models\Recipe::scopeContainsTag() has parameter $tagString with no type specified.
::error file=app/Models/Recipe.php,line=118,col=0::Call to static method of() on an unknown class App\Models\Str.
::error file=app/Models/RecipeComment.php,line=13,col=0::Method App\Models\RecipeComment::author() has no return type specified.
::error file=app/Models/RecipeComment.php,line=18,col=0::Method App\Models\RecipeComment::recipe() has no return type specified.
::error file=app/Models/RecipeComment.php,line=32,col=0::Method App\Models\RecipeComment::isUpVoted() should return bool but returns int.
::error file=app/Models/RecipeComment.php,line=45,col=0::Method App\Models\RecipeComment::isDownVoted() should return bool but returns int.
::error file=app/Models/RecipeCommentUpvote.php,line=18,col=0::Method App\Models\RecipeCommentUpvote::author() has no return type specified.
::error file=app/Models/RecipeCommentUpvote.php,line=23,col=0::Method App\Models\RecipeCommentUpvote::recipe_comment() has no return type specified.
::error file=app/Models/RecipeCommentUpvote.php,line=28,col=0::Method App\Models\RecipeCommentUpvote::scopeForRecipeCommentsUpVote() has no return type specified.
::error file=app/Models/RecipeCommentUpvote.php,line=28,col=0::Method App\Models\RecipeCommentUpvote::scopeForRecipeCommentsUpVote() has parameter $query with no type specified.
::error file=app/Models/RecipeCommentUpvote.php,line=33,col=0::Method App\Models\RecipeCommentUpvote::scopeForRecipeCommentsDownVote() has no return type specified.
::error file=app/Models/RecipeCommentUpvote.php,line=33,col=0::Method App\Models\RecipeCommentUpvote::scopeForRecipeCommentsDownVote() has parameter $query with no type specified.
::error file=app/Models/RecipeLike.php,line=16,col=0::Method App\Models\RecipeLike::scopeForRecipe() has no return type specified.
::error file=app/Models/RecipeLike.php,line=16,col=0::Method App\Models\RecipeLike::scopeForRecipe() has parameter $query with no type specified.
::error file=app/Models/Tag.php,line=16,col=0::Method App\Models\Tag::blogPosts() has no return type specified.
::error file=app/Models/Tag.php,line=21,col=0::Method App\Models\Tag::recipes() has no return type specified.
::error file=app/Models/UserAttachment.php,line=14,col=0::Method App\Models\UserAttachment::user() has no return type specified.
::error file=app/Models/UserAttachment.php,line=19,col=0::Method App\Models\UserAttachment::scopeCerts() has no return type specified.
::error file=app/Models/UserAttachment.php,line=19,col=0::Method App\Models\UserAttachment::scopeCerts() has parameter $query with no type specified.
::error file=app/Models/UserAttachment.php,line=24,col=0::Method App\Models\UserAttachment::meals() has no return type specified.
::error file=app/Models/UserDetailz.php,line=14,col=0::Method App\Models\UserDetailz::user() has no return type specified.
::error file=app/Models/WeightMeasure.php,line=14,col=0::Method App\Models\WeightMeasure::user() has no return type specified.
::error file=app/Notifications/ConsultantRequestStarted.php,line=15,col=0::Property App\Notifications\ConsultantRequestStarted::$education is never read, only written.
::error file=app/Notifications/DietStarted.php,line=14,col=0::Property App\Notifications\DietStarted::$chosenDiet has no type specified.
::error file=app/Notifications/DietStarted.php,line=21,col=0::Method App\Notifications\DietStarted::__construct() has parameter $chosenDiet with no type specified.
::error file=app/Presenters/PlanPresenter.php,line=10,col=0::Method App\Presenters\PlanPresenter::getAuthorPhoto() has no return type specified.
::error file=app/Presenters/PlanPresenter.php,line=17,col=0::Method App\Presenters\PlanPresenter::getAuthor() has no return type specified.
::error file=app/Presenters/PlanPresenter.php,line=19,col=0::Access to an undefined property App\Presenters\PlanPresenter::$author.
::error file=app/Rules/MinWords.php,line=9,col=0::Property App\Rules\MinWords::$minWords has no type specified.
::error file=app/Rules/MinWords.php,line=11,col=0::Method App\Rules\MinWords::__construct() has parameter $minWords with no type specified.
::error file=app/Services/FeedService.php,line=13,col=0::Method App\Services\FeedService::showActualFeed() has no return type specified.
::error file=app/Services/FeedService.php,line=46,col=0::Parameter #1 $query of static method Illuminate\Database\Connection::select() expects string, Illuminate\Contracts\Database\Query\Expression given.
::error file=app/Services/FeedService.php,line=65,col=0::Parameter #1 ...$values of method Illuminate\Support\Collection<(int|string),App\Models\BlogPost|Illuminate\Support\Collection<int, App\Models\BlogPost>|null>::push() expects App\Models\BlogPost|Illuminate\Support\Collection<int, App\Models\BlogPost>|null, App\Models\Recipe|null given.
::error file=app/Services/FeedService.php,line=66,col=0::Parameter #1 ...$values of method Illuminate\Support\Collection<(int|string),App\Models\BlogPost|Illuminate\Support\Collection<int, App\Models\BlogPost>|null>::push() expects App\Models\BlogPost|Illuminate\Support\Collection<int, App\Models\BlogPost>|null, App\Models\Recipe|null given.
::error file=config/rich-text-laravel.php,line=14,col=0::Class Tonysm\RichTextLaravel\Models\RichText not found.
::error file=config/state-machine.php,line=6,col=0::Class App\Article not found.
::error file=database/factories/BlogPostFactory.php,line=24,col=0::Method Faker\Generator::image() invoked with 9 parameters, 0-8 required.
::error file=database/factories/BlogPostFactory.php,line=38,col=0::Method Database\Factories\BlogPostFactory::some() has no return type specified.
::error file=database/factories/BlogPostFactory.php,line=40,col=0::Call to static method orderBy() on an unknown class Database\Factories\User.
::error file=database/factories/DietFactory.php,line=56,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/DietFactory.php,line=68,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/DietFactory.php,line=69,col=0::Call to an undefined method Faker\Generator::beverageName().
::error file=database/factories/DietFactory.php,line=70,col=0::Call to an undefined method Faker\Generator::dairyName().
::error file=database/factories/DietFactory.php,line=71,col=0::Call to an undefined method Faker\Generator::vegetableName().
::error file=database/factories/DietFactory.php,line=72,col=0::Call to an undefined method Faker\Generator::fruitName().
::error file=database/factories/DietFactory.php,line=73,col=0::Call to an undefined method Faker\Generator::meatName().
::error file=database/factories/DietFactory.php,line=74,col=0::Call to an undefined method Faker\Generator::sauceName().
::error file=database/factories/PlanFactory.php,line=37,col=0::Call to an undefined method Faker\Generator::fruitName().
::error file=database/factories/PlanFactory.php,line=37,col=0::Call to an undefined method Faker\Generator::meatName().
::error file=database/factories/PlanFactory.php,line=37,col=0::Call to an undefined method Faker\Generator::sauceName().
::error file=database/factories/PlanFactory.php,line=39,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/PlanFactory.php,line=44,col=0::Call to an undefined method Faker\Generator::fruitName().
::error file=database/factories/PlanFactory.php,line=44,col=0::Call to an undefined method Faker\Generator::meatName().
::error file=database/factories/PlanFactory.php,line=44,col=0::Call to an undefined method Faker\Generator::sauceName().
::error file=database/factories/PlanFactory.php,line=46,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/PlanFactory.php,line=51,col=0::Call to an undefined method Faker\Generator::fruitName().
::error file=database/factories/PlanFactory.php,line=51,col=0::Call to an undefined method Faker\Generator::meatName().
::error file=database/factories/PlanFactory.php,line=51,col=0::Call to an undefined method Faker\Generator::sauceName().
::error file=database/factories/PlanFactory.php,line=53,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/PlanFactory.php,line=58,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/PlanFactory.php,line=71,col=0::Method Database\Factories\PlanFactory::generateImageFile() has no return type specified.
::error file=database/factories/RecipeFactory.php,line=29,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/RecipeFactory.php,line=37,col=0::Call to an undefined method Faker\Generator::youtubeRandomUri().
::error file=database/factories/RecipeFactory.php,line=41,col=0::Method Database\Factories\RecipeFactory::generateImageFile() has no return type specified.
::error file=database/factories/RecipeFactory.php,line=56,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/RecipeFactory.php,line=70,col=0::Method Database\Factories\RecipeFactory::createQuentitySteps() has no return type specified.
::error file=database/factories/RecipeFactory.php,line=70,col=0::Method Database\Factories\RecipeFactory::createQuentitySteps() has parameter $count with no type specified.
::error file=database/factories/RecipeFactory.php,line=81,col=0::Method Database\Factories\RecipeFactory::createQuentityIngredients() has no return type specified.
::error file=database/factories/RecipeFactory.php,line=81,col=0::Method Database\Factories\RecipeFactory::createQuentityIngredients() has parameter $count with no type specified.
::error file=database/factories/TagFactory.php,line=25,col=0::Call to an undefined method Faker\Generator::foodName().
::error file=database/factories/UserFactory.php,line=59,col=0::Call to static method factory() on an unknown class App\Models\Team.
::error file=database/migrations/2022_06_30_090341_create_rich_texts_table.php,line=9,col=0::Method class@anonymous/database/migrations/2022_06_30_090341_create_rich_texts_table.php:7::up() has no return type specified.
::error file=database/migrations/2022_06_30_090341_create_rich_texts_table.php,line=22,col=0::Method class@anonymous/database/migrations/2022_06_30_090341_create_rich_texts_table.php:7::down() has no return type specified.
::error file=database/migrations/2022_09_06_115121_create_views_table.php,line=30,col=0::Property CreateViewsTable::$schema (Illuminate\Support\Facades\Schema) does not accept Illuminate\Database\Schema\Builder.
::error file=database/migrations/2023_07_26_145818_create_product_groups_table.php,line=19,col=0::Parameter #1 $value of method Illuminate\Database\Schema\ColumnDefinition::nullable() expects bool, string given.
::error file=database/migrations/2023_07_26_150531_create_product_nutritional_values_table.php,line=27,col=0::Parameter #1 $value of method Illuminate\Database\Schema\ColumnDefinition::nullable() expects bool, int given.
::error file=database/migrations/2023_07_26_150531_create_product_nutritional_values_table.php,line=28,col=0::Parameter #1 $value of method Illuminate\Database\Schema\ColumnDefinition::nullable() expects bool, int given.
::error file=database/migrations/2023_07_26_150531_create_product_nutritional_values_table.php,line=29,col=0::Parameter #1 $value of method Illuminate\Database\Schema\ColumnDefinition::nullable() expects bool, int given.
::error file=database/migrations/2023_07_26_150531_create_product_nutritional_values_table.php,line=30,col=0::Parameter #1 $value of method Illuminate\Database\Schema\ColumnDefinition::nullable() expects bool, int given.
::error file=database/migrations/2023_07_26_150531_create_product_nutritional_values_table.php,line=31,col=0::Parameter #1 $value of method Illuminate\Database\Schema\ColumnDefinition::nullable() expects bool, int given.
::error file=database/seeders/RecipeCommentSeeder.php,line=29,col=0::Call to an undefined method App\Models\PlanComment::recipe().
::error file=routes/console.php,line=18,col=0::Undefined variable: $this
::error file=tests/Feature/ApiTokenPermissionsTest.php,line=22,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/ApiTokenPermissionsTest.php,line=43,col=0::Call to an undefined method Illuminate\Database\Eloquent\Model::can().
::error file=tests/Feature/ApiTokenPermissionsTest.php,line=44,col=0::Call to an undefined method Illuminate\Database\Eloquent\Model::can().
::error file=tests/Feature/ApiTokenPermissionsTest.php,line=45,col=0::Call to an undefined method Illuminate\Database\Eloquent\Model::can().
::error file=tests/Feature/CreateApiTokenTest.php,line=21,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/CreateApiTokenTest.php,line=37,col=0::Access to an undefined property Illuminate\Database\Eloquent\Model::$name.
::error file=tests/Feature/CreateApiTokenTest.php,line=38,col=0::Call to an undefined method Illuminate\Database\Eloquent\Model::can().
::error file=tests/Feature/CreateApiTokenTest.php,line=39,col=0::Call to an undefined method Illuminate\Database\Eloquent\Model::can().
::error file=tests/Feature/DeleteAccountTest.php,line=21,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/DeleteAccountTest.php,line=38,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/DeleteApiTokenTest.php,line=22,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/DeleteApiTokenTest.php,line=34,col=0::Access to an undefined property Illuminate\Database\Eloquent\Model::$id.
::error file=tests/Feature/EmailVerificationTest.php,line=23,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/EmailVerificationTest.php,line=38,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/EmailVerificationTest.php,line=64,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/MealFormTest.php,line=12,col=0::Method Tests\Feature\MealFormTest::diary_creation_page_contains_livewire_component() has no return type specified.
::error file=tests/Feature/MealFormTest.php,line=19,col=0::Call to an undefined method Illuminate\Testing\TestResponse::assertSeeLivewire().
::error file=tests/Feature/MealFormTest.php,line=23,col=0::Method Tests\Feature\MealFormTest::meal_form_productName_is_required() has no return type specified.
::error file=tests/Feature/MealFormTest.php,line=47,col=0::Method Tests\Feature\MealFormTest::meal_form_add_portion() has no return type specified.
::error file=tests/Feature/PasswordResetTest.php,line=21,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/PasswordResetTest.php,line=34,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/PasswordResetTest.php,line=53,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/PasswordResetTest.php,line=78,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/Plan/CreateTest.php,line=19,col=0::Property Tests\Feature\Plan\CreateTest::$image has no type specified.
::error file=tests/Feature/Plan/CreateTest.php,line=21,col=0::Property Tests\Feature\Plan\CreateTest::$plan has no type specified.
::error file=tests/Feature/Plan/CreateTest.php,line=37,col=0::Method Tests\Feature\Plan\CreateTest::test_show_form_create_plan() has no return type specified.
::error file=tests/Feature/Plan/EditTest.php,line=18,col=0::Property Tests\Feature\Plan\EditTest::$image has no type specified.
::error file=tests/Feature/Plan/EditTest.php,line=35,col=0::Method Tests\Feature\Plan\EditTest::test_show_form_edit_plan() has no return type specified.
::error file=tests/Feature/Plan/IndexTest.php,line=14,col=0::Property Tests\Feature\Plan\IndexTest::$plan has no type specified.
::error file=tests/Feature/Plan/IndexTest.php,line=14,col=0::Property Tests\Feature\Plan\IndexTest::$plan is never read, only written.
::error file=tests/Feature/Plan/IndexTest.php,line=26,col=0::Method Tests\Feature\Plan\IndexTest::test_index_page_success() has no return type specified.
::error file=tests/Feature/Plan/ShowTest.php,line=17,col=0::Property Tests\Feature\Plan\ShowTest::$plan has no type specified.
::error file=tests/Feature/Plan/ShowTest.php,line=29,col=0::Method Tests\Feature\Plan\ShowTest::test_show_page_success() has no return type specified.
::error file=tests/Feature/ProfileInformationTest.php,line=21,col=0::Access to an undefined property Livewire\Features\SupportTesting\Testable::$state.
::error file=tests/Feature/ProfileInformationTest.php,line=22,col=0::Access to an undefined property Livewire\Features\SupportTesting\Testable::$state.
::error file=tests/Feature/Recipe/CreateTest.php,line=25,col=0::Property Tests\Feature\Recipe\CreateTest::$image has no type specified.
::error file=tests/Feature/Recipe/CreateTest.php,line=27,col=0::Property Tests\Feature\Recipe\CreateTest::$steps has no type specified.
::error file=tests/Feature/Recipe/CreateTest.php,line=27,col=0::Property Tests\Feature\Recipe\CreateTest::$steps is unused.
::error file=tests/Feature/Recipe/CreateTest.php,line=38,col=0::Property Tests\Feature\Recipe\CreateTest::$recipe (App\Models\Recipe) does not accept App\Models\Plan.
::error file=tests/Feature/Recipe/EditTest.php,line=53,col=0::Property Tests\Feature\Recipe\EditTest::$recipe (App\Models\Recipe) does not accept App\Models\Plan.
::error file=tests/Feature/Recipe/EditTest.php,line=58,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=59,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=63,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=64,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=65,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=66,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=69,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=70,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=71,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=72,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=84,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=86,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=87,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=89,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=90,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=101,col=0::Property Tests\Feature\Recipe\EditTest::$recipe (App\Models\Recipe) does not accept App\Models\Plan.
::error file=tests/Feature/Recipe/EditTest.php,line=106,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=107,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=111,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=112,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=113,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=114,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=117,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=118,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=119,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=120,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=131,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=133,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=134,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=136,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=137,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=147,col=0::Property Tests\Feature\Recipe\EditTest::$recipe (App\Models\Recipe) does not accept App\Models\Plan.
::error file=tests/Feature/Recipe/EditTest.php,line=152,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=153,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=157,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=158,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=159,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=160,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=163,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=164,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=165,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=166,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/EditTest.php,line=177,col=0::Access to an undefined property App\Models\Plan::$title.
::error file=tests/Feature/Recipe/EditTest.php,line=179,col=0::Access to an undefined property App\Models\Plan::$cooking_time.
::error file=tests/Feature/Recipe/EditTest.php,line=180,col=0::Access to an undefined property App\Models\Plan::$ingredients.
::error file=tests/Feature/Recipe/EditTest.php,line=182,col=0::Access to an undefined property App\Models\Plan::$description.
::error file=tests/Feature/Recipe/EditTest.php,line=183,col=0::Access to an undefined property App\Models\Plan::$video_url.
::error file=tests/Feature/Recipe/IndexTest.php,line=14,col=0::Property Tests\Feature\Recipe\IndexTest::$recipe is never read, only written.
::error file=tests/Feature/Recipe/IndexTest.php,line=26,col=0::Method Tests\Feature\Recipe\IndexTest::test_index_page_success() has no return type specified.
::error file=tests/Feature/Recipe/ShowTest.php,line=26,col=0::Method Tests\Feature\Recipe\ShowTest::test_show_page_success() has no return type specified.
::error file=tests/Feature/RegistrationTest.php,line=20,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/RegistrationTest.php,line=33,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/RegistrationTest.php,line=46,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/TwoFactorAuthenticationSettingsTest.php,line=21,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/TwoFactorAuthenticationSettingsTest.php,line=42,col=0::Unreachable statement - code above always terminates.
::error file=tests/Feature/TwoFactorAuthenticationSettingsTest.php,line=66,col=0::Unreachable statement - code above always terminates.
::error file=tests/TestCase.php,line=30,col=0::Method Tests\TestCase::refreshApplicationWithLocale() has no return type specified.
::error file=tests/TestCase.php,line=30,col=0::Method Tests\TestCase::refreshApplicationWithLocale() has parameter $locale with no type specified.
::error ::Ignored error pattern /Parameter #1 \$value of function collect expects/ was not matched in reported errors.
::error ::Ignored error pattern /PHPDoc type array of property App\\Models\\User::\$hidden is not covariant with PHPDoc type/ was not matched in reported errors.
::error ::Ignored error pattern /PHPDoc type array of property App\\Models\\User::\$casts is not covariant with PHPDoc type/ was not matched in reported errors.
::error ::Ignored error pattern /is not covariant with PHPDoc type/ was not matched in reported errors.
Script phpstan analyse --ansi --memory-limit 512M --error-format=github handling the static-analysis event returned with error code 1

1
database/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.sqlite*

View File

@@ -0,0 +1,47 @@
<?php
namespace Database\Factories;
use App\Models\BlogPost;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\BlogPost>
*/
class BlogPostFactory extends Factory
{
protected $model = BlogPost::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
$imagePath = storage_path('app/public');
$curImage = $this->faker->image($imagePath.'/blog_posts', 360, 360, 'animals', true, true, 'cats', true, 'jpg');
$curImage = Str::replace($imagePath, '', $curImage);
return [
'state' => $this->faker->randomElement(['active', 'archived']),
'image' => $curImage,
'description' => $this->faker->realText($this->faker->numberBetween(100, 200)),
'youtube_url' => $this->faker->url(),
'created_at' => $this->faker->dateTimeBetween('-1 week', '+1 week'),
'updated_at' => $this->faker->dateTimeBetween('-1 week', '+1 week'),
'title' => $this->faker->realText($this->faker->numberBetween(10, 20)),
];
}
public function some()
{
User::orderBy('created_at', 'desc')->limit(20)->get()->map(function ($user) {
$newBlogPosts = BlogPost::factory()->count(3)->create();
$newBlogPosts->map(function ($post) use ($user) {
$user->author_of_blog_post()->attach($post->id);
});
});
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace Database\Factories;
use App\Models\Diary;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Diary>
*/
class DiaryFactory extends Factory
{
protected $model = Diary::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
'user_id' => User::factory(),
'date' => $this->faker->date('Y-m-d'),
'wakeup' => '06:30:00',
'retire' => '22:30:00',
'comment' => 'some comment for tests',
'closed' => false,
];
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use FakerRestaurant\Provider\en_US\Restaurant;
use App\Models\Diet;
use App\Models\User;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Illuminate\Http\File;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Diet>
*/
class DietFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
$faker = \Faker\Factory::create();
$this->faker->addProvider(new Restaurant($faker));
$dietDuration = $this->faker->randomElement([7, 14, 21]);
$dietState = $this->faker->randomElement(['active','draft','archived']);
$numberOfDefinedDietTypes = $this->faker->numberBetween(1, 4);
$expectedDietTypes = ['meat', 'veg', 'corb', 'alko'];
$selectedDietTypes = $this->faker->randomElements($expectedDietTypes, $numberOfDefinedDietTypes);
$dietTypes = array_reduce(
$selectedDietTypes,
function($acc, $el) {
$acc[$el] = true;
return $acc;
},
[]
);
$dietEatingTypes = ['breakfast', 'dinner', 'supper', 'lunch', 'snacks'];
$dailySchedule = [];
$images = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.png', '8.png', '9.jpg', '10.png'];
Storage::fake('diets');
$imageFileKey = $this->faker->numberBetween(0, 9);
$imageFilePath = 'database/assets/images/diets/' . $images[$imageFileKey];
$file = new File($imageFilePath);
$fileLocalPath = Storage::putFile('diets', $file, 'public');
for($day = 1; $day <= $dietDuration ; $day++) {
foreach($dietEatingTypes as $eatingType) {
$numberOfProductsInCurrentMeel = $this->faker->numberBetween(1, 4);
for(;$numberOfProductsInCurrentMeel > 0; $numberOfProductsInCurrentMeel--) {
$meelName = $this->faker->foodName();
$dailySchedule[$day][$eatingType][] = [
'name' => $meelName,
'quantity' => $this->faker->numberBetween(1, 1000),
'portion' => $this->faker->randomElement(['grams', 'pcs', 'milliliters']),
'uniq' => $meelName . '-' . time(),
];
}
}
}
$dietName = $this->faker->randomElement([
$this->faker->foodName(),
$this->faker->beverageName(),
$this->faker->dairyName(),
$this->faker->vegetableName(),
$this->faker->fruitName(),
$this->faker->meatName(),
$this->faker->sauceName(),
]);
$dietNamePrefix = $this->faker->randomElement(['Super', 'Keto', 'Fast', 'Detox', 'Power Of', 'Green', 'Healthy', 'Turbo']);
return [
'name' => $dietNamePrefix . " " . $dietName . " Diet",
'duration' => $dietDuration,
'state' => $dietState,
'image' => $fileLocalPath,
'type' => $dietTypes,
'details' => $this->faker->paragraph(3, true),
'daily_schedule' => $dailySchedule
];
}
}

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\PlanComment>
*/
class PlanCommentFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'grade' => $this->faker->randomDigit(),
'body' => $this->faker->text(),
];
}
}

View File

@@ -0,0 +1,79 @@
<?php
namespace Database\Factories;
use FakerRestaurant\Provider\en_US\Restaurant;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Plan>
*/
class PlanFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
$faker = \Faker\Factory::create();
$this->faker->addProvider(new Restaurant($faker));
$active = $this->faker->boolean();
$typeBody = [
'fit' => $this->faker->boolean(),
'slim' => $this->faker->boolean(),
'behavior' => $this->faker->boolean(),
'wellness' => $this->faker->boolean(),
];
$wrongTypeBody = json_encode($typeBody);
$packetsOptions1 = [
'items' => [$this->faker->fruitName(), $this->faker->meatName(), $this->faker->sauceName()],
'price' => $this->faker->randomNumber(),
'short' => $this->faker->foodName(),
'description' => $this->faker->text(),
];
$packetsOptions2 = [
'items' => [$this->faker->fruitName(), $this->faker->meatName(), $this->faker->sauceName()],
'price' => $this->faker->randomNumber(),
'short' => $this->faker->foodName(),
'description' => $this->faker->text(),
];
$packetsOptions3 = [
'items' => [$this->faker->fruitName(), $this->faker->meatName(), $this->faker->sauceName()],
'price' => $this->faker->randomNumber(),
'short' => $this->faker->foodName(),
'description' => $this->faker->text(),
];
Storage::fake('plans');
$file = UploadedFile::fake()->image('plan.png');
$fileLocalPath = $file->store('plans', 'public');
return [
'name' => $this->faker->foodName(),
// 'image' => UploadedFile::fake()->image('plans/Photo_C.png'),
'image' => $fileLocalPath,
'duration' => $this->faker->randomElement([7, 14, 21]),
'state' => $this->faker->randomElement(['active', 'draft', 'unactive']),
//'type' => $this->faker->randomElement([$typeBody, $wrongTypeBody]),
'type' => $typeBody,
'details' => $this->faker->text(),
'packets_count' => $this->faker->randomElement([1, 3]),
'packet1_options' => $packetsOptions1,
'packet2_options' => $active ? $packetsOptions2 : '',
'packet3_options' => $active ? $packetsOptions3 : '',
];
}
}

View File

@@ -0,0 +1,50 @@
<?php
namespace Database\Factories;
use App\Models\User;
use App\Models\UserDetailz;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\UserDetailz>
*/
class UserDetailzFactory extends Factory
{
protected $model = UserDetailz::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
// 'user_id' => User::factory(),
'first_name' => $this->faker->name(),
'last_name' => $this->faker->name(),
'birthdate' => $this->faker->date('Y-m-d'),
'gender' => $this->faker->randomElement(['male', 'female']),
'country' => $this->faker->countryCode(),
'city' => $this->faker->randomElement(['Moscow', 'Kyev', 'New-York', 'Minsk']),
'lang' => $this->faker->languageCode(),
'weight' => $this->faker->numberBetween(90, 200),
'chest_circumference' => $this->faker->randomNumber(2, true),
'waist_circumference' => $this->faker->randomNumber(2, true),
'hip_circumference' => $this->faker->randomNumber(2, true),
'blood_pressure_up' => $this->faker->randomNumber(3, true),
'blood_pressure_down' => $this->faker->randomNumber(3, true),
'has_hypo' => $this->faker->randomElement(['0', '1']),
'has_hyper' => $this->faker->randomElement(['0', '1']),
'about_alergy' => $this->faker->text(),
'about_taking_pils' => $this->faker->text(),
'about_sport_hobbies' => $this->faker->text(),
'favorite_foods' => $this->faker->text(),
'unfavorite_foods' => $this->faker->text(),
'additional_info' => $this->faker->text(),
'is_mood_fillable' => $this->faker->boolean(),
'is_bedtime_fillable' => $this->faker->boolean(),
];
}
}

View File

@@ -0,0 +1,69 @@
<?php
namespace Database\Factories;
use App\Models\Team;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Laravel\Jetstream\Features;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'two_factor_secret' => null,
'two_factor_recovery_codes' => null,
'remember_token' => Str::random(10),
'profile_photo_path' => null,
'current_team_id' => null,
];
}
/**
* Indicate that the model's email address should be unverified.
*/
public function unverified(): static
{
return $this->state(function (array $attributes) {
return [
'email_verified_at' => null,
];
});
}
/**
* Indicate that the user should have a personal team.
*/
public function withPersonalTeam(?callable $callback = null): static
{
if (! Features::hasTeamFeatures()) {
return $this->state([]);
}
return $this->has(
Team::factory()
->state(fn (array $attributes, User $user) => [
'name' => $user->name.'\'s Team',
'user_id' => $user->id,
'personal_team' => true,
])
->when(is_callable($callback), $callback),
'ownedTeams'
);
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->foreignId('current_team_id')->nullable();
$table->string('profile_photo_path', 2048)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('users');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_resets');
}
};

View File

@@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Laravel\Fortify\Fortify;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->text('two_factor_secret')
->after('password')
->nullable();
$table->text('two_factor_recovery_codes')
->after('two_factor_secret')
->nullable();
if (Fortify::confirmsTwoFactorAuthentication()) {
$table->timestamp('two_factor_confirmed_at')
->after('two_factor_recovery_codes')
->nullable();
}
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(array_merge([
'two_factor_secret',
'two_factor_recovery_codes',
], Fortify::confirmsTwoFactorAuthentication() ? [
'two_factor_confirmed_at',
] : []));
});
}
};

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('failed_jobs');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->id();
$table->morphs('tokenable');
$table->string('name');
$table->string('token', 64)->unique();
$table->text('abilities')->nullable();
$table->timestamp('last_used_at')->nullable();
$table->timestamp('expires_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('personal_access_tokens');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->primary();
$table->foreignId('user_id')->nullable()->index();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->text('payload');
$table->integer('last_activity')->index();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sessions');
}
};

View File

@@ -0,0 +1,53 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_detailzs', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id')->nullable();
$table->string('first_name', 256)->default('');
$table->string('last_name', 256)->default('');
$table->date('birthdate')->default('1980-01-01')->nullable(false);
$table->string('gender')->default('');
$table->string('country')->default('');
$table->string('city')->default('');
$table->string('lang')->default('');
$table->smallInteger('weight')->default(0);
$table->smallInteger('chest_circumference')->default(0);
$table->smallInteger('waist_circumference')->default(0);
$table->smallInteger('hip_circumference')->default(0);
$table->smallInteger('blood_pressure_up')->default(0);
$table->smallInteger('blood_pressure_down')->default(0);
$table->boolean('has_hypo')->default(false);
$table->boolean('has_hyper')->default(false);
$table->text('about_alergy');
$table->text('about_taking_pils');
$table->text('about_sport_hobbies');
$table->text('favorite_foods');
$table->text('unfavorite_foods');
$table->text('additional_info');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_detailzs');
}
};

View File

@@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diaries', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')
->nullable()
->constrained()
->onUpdate('cascade')
->onDelete('cascade');
/* $table->unsignedBigInteger('user_id'); */
$table->date('date');
$table->time('wakeup');
$table->time('retire');
$table->timestamps();
/* $table->foreign('user_id')->references('id')->on('users'); */
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diaries');
}
};

View File

@@ -0,0 +1,45 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('meals', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')
->nullable()
->constrained('users')
->onUpdate('cascade')
->onDelete('cascade');
$table->foreignId('diary_id')
->nullable()
->constrained('diaries')
->onUpdate('cascade')
->onDelete('cascade');
$table->time('time');
$table->unsignedTinyInteger('type');
$table->tinyInteger('satiety');
$table->tinyInteger('mood');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('meals');
}
};

View File

@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('portions', function (Blueprint $table) {
$table->id();
$table->foreignId('meal_id')
->constrained('meals')
->onUpdate('cascade')
->onDelete('cascade');
$table->string('product_name');
$table->string('portion');
$table->smallInteger('quantity');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('portions');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('diaries', function (Blueprint $table) {
$table->boolean('closed')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('diaries', function (Blueprint $table) {
$table->dropColumn('closed');
});
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('calendars', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('calendars');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('circumference_measures', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->smallInteger('chest_circumference')->default(0);
$table->smallInteger('waist_circumference')->default(0);
$table->smallInteger('hip_circumference')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('circumference_measures');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('weight_measures', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->smallInteger('weight')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('weight_measures');
}
};

View File

@@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('consultant_education', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->json('completed_courses');
$table->boolean('has_medical_education')->default(false);
$table->string('vk_link')->default('');
$table->string('insta_link')->default('');
$table->string('fb_link')->default('');
$table->string('tg_link')->default('');
$table->string('request_state')->default('');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('consultant_education');
}
};

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_attachments', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->string('group')->default('user_files');
$table->string('original_name');
$table->string('path');
$table->integer('size')->default(0);
$table->json('specs');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_attachments');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('is_consultant')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('is_consultant');
});
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('meal_user_attachment', function (Blueprint $table) {
$table->id();
$table->bigInteger('meal_id');
$table->bigInteger('user_attachment_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('meal_user_attachment');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('consultant_diary_comments', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id')->comment('consultant id');
$table->bigInteger('diary_id');
$table->string('comment_type', 128);
$table->text('comment');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('consultant_diary_comments');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('diaries', function (Blueprint $table) {
$table->text('comment');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('diaries', function (Blueprint $table) {
$table->dropColumn('comment');
});
}
};

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('plans', function (Blueprint $table) {
$table->id();
$table->string('name')->comment('name of plan');
$table->string('image')->nullable()->comment('public path to image');
$table->smallInteger('duration')->comment('plan duration - 7, 14, 21 days');
$table->string('state')->comment('active/draft/archived');
$table->json('type')->comment('to lose weight, to gain weight, to improve your mood, to shape your eating behavior');
$table->text('details')->comment('plan details');
$table->tinyInteger('packets_count')->comment('1 on 3 packets of options in plan');
$table->json('packet1_options');
$table->json('packet2_options');
$table->json('packet3_options');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('plans');
}
};

View File

@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('rich_texts', function (Blueprint $table) {
$table->id();
$table->morphs('record');
$table->string('field');
$table->longText('body')->nullable();
$table->timestamps();
$table->unique(['field', 'record_type', 'record_id']);
});
}
public function down()
{
Schema::dropIfExists('rich_texts');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('plan_author', function (Blueprint $table) {
$table->bigInteger('user_id');
$table->bigInteger('plan_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('plan_author');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('plan_comments', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->bigInteger('plan_id');
$table->smallInteger('grade')->default(0);
$table->longText('body')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('plan_comments');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('plan_likes', function (Blueprint $table) {
$table->id();
$table->foreignId('plan_id');
$table->foreignId('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('plan_likes');
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('comment_upvotes', function (Blueprint $table) {
$table->id();
$table->foreignId('comment_id');
$table->foreignId('user_id');
$table->string('type')->default('upvote');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('comment_upvotes');
}
};

View File

@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diets', function (Blueprint $table) {
$table->id();
$table->string('name')->comment('name of diet');
$table->string('image')->nullable()->comment('public path to image');
$table->smallInteger('duration')->comment('diet duration - 7, 14, 28 days');
$table->string('state')->comment('active/draft/archived');
$table->json('type')->comment('has meat/vegs/carb/alcohol');
$table->text('details')->comment('diet details');
$table->json('daily_schedule')->comment('A list of planned foods');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diets');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diet_author', function (Blueprint $table) {
$table->bigInteger('user_id');
$table->bigInteger('diet_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diet_author');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diet_comments', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->bigInteger('diet_id');
$table->smallInteger('grade')->default(0);
$table->longText('body')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diet_comments');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diet_likes', function (Blueprint $table) {
$table->id();
$table->foreignId('diet_id');
$table->foreignId('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diet_likes');
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diet_comment_upvotes', function (Blueprint $table) {
$table->id();
$table->foreignId('comment_id');
$table->foreignId('user_id');
$table->string('type')->default('upvote');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diet_comment_upvotes');
}
};

View File

@@ -0,0 +1,62 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateViewsTable extends Migration
{
/**
* The database schema.
*
* @var \Illuminate\Support\Facades\Schema
*/
protected $schema;
/**
* The table name.
*
* @var string
*/
protected $table;
/**
* Create a new migration instance.
*
* @return void
*/
public function __construct()
{
$this->schema = Schema::connection(
config('eloquent-viewable.models.view.connection')
);
$this->table = config('eloquent-viewable.models.view.table_name');
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$this->schema->create($this->table, function (Blueprint $table) {
$table->bigIncrements('id');
$table->morphs('viewable');
$table->text('visitor')->nullable();
$table->string('collection')->nullable();
$table->timestamp('viewed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists($this->table);
}
}

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chosen_plans', function (Blueprint $table) {
$table->id();
$table->foreignId('plan_id')->nullable();
$table->foreignId('user_id')->unique();
$table->string('last_state')->default('inited'); // requested->paid->started->finished, requested->paid->started->rejected, requested->rejected
$table->timestamp('start_date')->useCurrent();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('chosen_plans');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chosen_diets', function (Blueprint $table) {
$table->id();
$table->foreignId('diet_id')->nullable();
$table->foreignId('user_id')->unique();
$table->string('last_state')->default('inited'); // started->finished, started->rejected
$table->timestamp('start_date')->useCurrent();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('chosen_diets');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateStateHistoryTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('state_history', function (Blueprint $table) {
$table->increments('id');
$table->string('transition');
$table->string('from');
$table->string('to');
$table->integer('actor_id')->nullable();
$table->morphs('statable');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('state_history');
}
}

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('blog_posts', function (Blueprint $table) {
$table->id();
$table->string('state')->default('archived')->comment('active/archived');
$table->string('image')->default('')->comment('public path to image');
$table->text('description');
$table->string('youtube_url')->default('');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blog_posts');
}
};

View File

@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recipes', function (Blueprint $table) {
$table->id();
$table->string('image')->default('')->comment('public path to image');
$table->string('state')->comment('active/archived');
$table->integer('cooking_time')->default(0);
$table->json('ingredients');
$table->text('description');
$table->json('steps');
$table->string('youtube_url')->default('');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('recipes');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tags', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tags');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('taggables', function (Blueprint $table) {
$table->id();
$table->integer('tag_id');
$table->morphs('taggable');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('taggables');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('blog_post_author', function (Blueprint $table) {
$table->bigInteger('user_id');
$table->bigInteger('blog_post_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blog_post_author');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recipe_author', function (Blueprint $table) {
$table->bigInteger('user_id');
$table->bigInteger('recipe_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('recipe_author');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('blog_post_comments', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->bigInteger('blog_post_id');
$table->smallInteger('grade')->default(0);
$table->longText('body')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blog_post_comments');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('blog_post_likes', function (Blueprint $table) {
$table->id();
$table->foreignId('blog_post_id');
$table->foreignId('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blog_post_likes');
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('blog_post_comment_upvotes', function (Blueprint $table) {
$table->id();
$table->foreignId('blog_post_comment_id');
$table->foreignId('user_id');
$table->string('type')->default('upvote');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('blog_post_comment_upvotes');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recipe_comments', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->bigInteger('recipe_id');
$table->smallInteger('grade')->default(0);
$table->longText('body')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('recipe_comments');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recipe_likes', function (Blueprint $table) {
$table->id();
$table->foreignId('recipe_id');
$table->foreignId('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('recipe_likes');
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recipe_comment_upvotes', function (Blueprint $table) {
$table->id();
$table->foreignId('recipe_comment_id');
$table->foreignId('user_id');
$table->string('type')->default('upvote');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('recipe_comment_upvotes');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('blog_posts', function (Blueprint $table) {
$table->string('title', 512)->default('');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('blog_posts', function (Blueprint $table) {
$table->dropColumn('title');
});
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('recipes', function (Blueprint $table) {
$table->string('title', 512)->default('');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('recipes', function (Blueprint $table) {
$table->dropColumn('title');
});
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('recipes', function (Blueprint $table) {
$table->renameColumn('youtube_url', 'video_url');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('recipes', function (Blueprint $table) {
$table->renameColumn('video_url', 'youtube_url');
});
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('recipes', function (Blueprint $table) {
$table->string('type', 512)->default('unknown');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('recipes', function (Blueprint $table) {
$table->dropColumn('type');
});
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chats', function (Blueprint $table) {
$table->id();
$table->foreignId('from_user_id');
$table->foreignId('to_user_id');
$table->text('data');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('chats');
}
};

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('description')->nullable('')->default('');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('product_groups');
}
};

View File

@@ -0,0 +1,45 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_nutritional_values', function (Blueprint $table) {
$table->id();
$table->string('name')->unique();
$table->string('image')->nullable()->default('');
$table->foreignId('product_group_id');
$table->string('description', 4096);
$table->string('formulations', 4096);
$table->integer('energy_on_100gr');
$table->float('proteins_on_100gr', 8, 2);
$table->float('fats_on_100gr', 8, 2);
$table->float('carbohydrates_on_100gr', 8, 2);
$table->integer('portion_mass_gr')->nullable(0);
$table->float('energy_on_portion', 8, 2)->nullable(0);
$table->float('proteins_on_portion', 8, 2)->nullable(0);
$table->float('fats_on_portion', 8, 2)->nullable(0);
$table->float('carbohydrates_on_portion', 8, 2)->nullable(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('product_nutritional_values');
}
};

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('finances', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('finances');
}
};

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('user_detailzs', function (Blueprint $table) {
$table->integer('height')->comment('user height in centimeters')->default(170)->after('weight');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('user_detailzs', function (Blueprint $table) {
$table->dropColumn('height');
});
}
};

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('user_detailzs', function (Blueprint $table) {
$table->boolean('is_mood_fillable');
$table->boolean('is_bedtime_fillable');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('user_detailzs', function (Blueprint $table) {
$table->dropColumn('is_mood_fillable');
$table->dropColumn('is_bedtime_fillable');
});
}
};

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('is_public_profile')->default(1)->comment('0 only friends, 1 all');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('is_public_profile');
});
}
};

View File

@@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('consultant_legal_entities', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained(
table: 'users',
indexName: 'consultant_legal_entities_user_id'
);
$table->string('type')->default('selfemployed')->comment('ip|selfemployed|ltd');
$table->string('inn')->default('')->comment('ИНН');
$table->string('egrip')->default('')->comment('Номер записи в ЕГРИП для ИП');
$table->string('ltd_name', 2048)->default('')->comment('Название OOO');
$table->string('ltd_kpp')->default('')->comment('КПП ООО');
$table->string('ltd_ogrn')->default('')->comment('ОГРН ООО');
$table->string('ltd_legal_address', 2048)->default('')->comment('Юридический адрес ООО');
$table->string('ltd_poste_address', 2048)->default('')->comment('Почтовый адрес ООО');
$table->string('ltd_okved')->default('')->comment('ОКВЭД ООО');
$table->string('ltd_ceo_name', 2048)->default('')->comment('ФИО Генерального директора ООО');
$table->string('bank_account')->default('')->comment('Рассчетный счет');
$table->string('bank_correspondent_account')->default('')->comment('корреспондентский счет');
$table->string('bank_bik')->default('')->comment('БИК');
$table->string('bank_name', 2048)->default('')->comment('Название Банка');
$table->string('state')->default('published')->comment('published|appruved|cenceled');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('consultant_legal_entities');
}
};

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('plans', function (Blueprint $table) {
$table->string('slug');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('plans', function (Blueprint $table) {
$table->dropColumn('slug');
});
}
};

View File

@@ -0,0 +1,18 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class BlogPostSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(PlanSeeder::class);
$this->call(UserSeeder::class);
$this->call(PlanAuthor::class);
$this->call(PlanCommentSeeder::class);
// $this->call(RecipeSeeder::class);
// \App\Models\User::factory(10)->create();
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Diet;
use App\Models\User;
class DietsSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$diets = Diet::factory()->count(10)->create();
$diets->each(
fn ($diet) => $diet->author()->attach(User::inRandomOrder()->first())
);
}
}

View File

@@ -0,0 +1,25 @@
<?php
namespace Database\Seeders;
use App\Models\Plan;
use App\Models\User;
use Illuminate\Database\Seeder;
class PlanAuthor extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
if (User::count() > 0 && Plan::count() > 0) {
Plan::each(function ($plan) {
User::inRandomOrder()
->first()
->author_of_plans()
->attach($plan->id);
});
}
}
}

View File

@@ -0,0 +1,37 @@
<?php
namespace Database\Seeders;
use App\Models\Plan;
use App\Models\PlanComment;
use App\Models\User;
use Illuminate\Database\Seeder;
class PlanCommentSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
if (User::count() > 0 && Plan::count() > 0) {
$comments = PlanComment::factory()->count(5)->make();
$comments->each(function ($comment) {
$comment->author()->associate(
User::inRandomOrder()
->first()
->id
);
$comment->plan()->associate(
Plan::inRandomOrder()
->first()
->id
);
$comment->saveOrFail();
});
}
}
}

17
database/seeders/PlanSeeder.php Executable file
View File

@@ -0,0 +1,17 @@
<?php
namespace Database\Seeders;
use App\Models\Plan;
use Illuminate\Database\Seeder;
class PlanSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Plan::factory()->count(10)->create();
}
}

View File

@@ -0,0 +1,59 @@
<?php
namespace Database\Seeders;
use App\Models\User;
use App\Models\UserDetailz;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
array_map(function ($user) {
$user = User::factory($user)->create();
$userDetailz = UserDetailz::factory()->make();
$userDetailz->user()->associate($user);
$userDetailz->saveOrFail();
}, $this->getListUsers());
}
private function getListUsers(): array
{
$allUsersHash = Hash::make('1234567890');
return [
['id' => 3, 'name' => 'Анчоус Альф', 'email' => 'reshetnick.mike+user1@gmail.com', 'password' => $allUsersHash, 'is_consultant' => true],
['id' => 4, 'name' => 'Чена Сибаину', 'email' => 'reshetnik.n+user1@gmail.com', 'password' => $allUsersHash, 'is_consultant' => true],
['id' => 5, 'name' => 'Бруно Бармалей', 'email' => 'reshetnick.mike+user2@gmail.com', 'password' => $allUsersHash, 'is_consultant' => true],
['id' => 6, 'name' => 'Варенник Васаби', 'email' => 'reshetnick.mike+user3@gmail.com', 'password' => $allUsersHash, 'is_consultant' => true],
['id' => 7, 'name' => 'Денди Дуглас', 'email' => 'reshetnick.mike+user4@gmail.com', 'password' => $allUsersHash, 'is_consultant' => true],
['id' => 8, 'name' => 'Ник Радченков', 'email' => 'reshetnik.n+user2@gmail.com', 'password' => $allUsersHash],
['id' => 9, 'name' => 'Миса Кошка', 'email' => 'reshetnik.n+user3@gmail.com', 'password' => $allUsersHash],
['id' => 10, 'name' => 'Ерошка Есаул', 'email' => 'reshetnick.mike+user5@gmail.com', 'password' => $allUsersHash],
['id' => 11, 'name' => 'Жмурка Живчик', 'email' => 'reshetnick.mike+user6@gmail.com', 'password' => $allUsersHash],
['id' => 12, 'name' => 'Гошка Картошка', 'email' => 'reshetnik.n+user4@gmail.com', 'password' => $allUsersHash],
['id' => 13, 'name' => 'Зефир Забияка', 'email' => 'reshetnick.mike+user7@gmail.com', 'password' => $allUsersHash],
['id' => 14, 'name' => 'Антоша Одуван', 'email' => 'reshetnik.n+user5@gmail.com', 'password' => $allUsersHash],
['id' => 15, 'name' => 'Кусик Кукусик', 'email' => 'reshetnik.n+user6@gmail.com', 'password' => $allUsersHash],
['id' => 16, 'name' => 'Косик Кокосик', 'email' => 'reshetnik.n+user7@gmail.com', 'password' => $allUsersHash],
['id' => 17, 'name' => 'Хинкалька Вкусная', 'email' => 'reshetnik.n+user8@gmail.com', 'password' => $allUsersHash],
['id' => 18, 'name' => 'Импульс Йети', 'email' => 'reshetnick.mike+user8@gmail.com', 'password' => $allUsersHash],
['id' => 19, 'name' => 'Квики Кекс', 'email' => 'reshetnick.mike+user9@gmail.com', 'password' => $allUsersHash],
['id' => 20, 'name' => 'Чебурек Сочный', 'email' => 'reshetnik.n+user9@gmail.com', 'password' => $allUsersHash],
['id' => 21, 'name' => 'Клубника Дикая', 'email' => 'reshetnik.n+user10@gmail.com', 'password' => $allUsersHash],
['id' => 22, 'name' => 'Ляпис Лапша', 'email' => 'reshetnick.mike+user10@gmail.com', 'password' => $allUsersHash],
['id' => 23, 'name' => 'Друг Парадоксов', 'email' => 'reshetnick.mike+user11@gmail.com', 'password' => $allUsersHash],
];
}
}