Thank you, glad to hear that. I'm planing to release some paid courses but want them to be alot better than my youtube videos, will make announcements once the courses are out. Thank you 😄
Hi thanks for this tutorial, is good or bad to create a static function in User model topUsers a return self::withCount('ideas')... ? and called from AppServiceProvider as User::topUsers(); to passed to the View share facade?
Thanks for watching. Generally speaking on small projects it's not a problem to do that . However, if you see or know that the User Model might be getting too big or you have too many static methods like the topUsers, you are better off refactoring or having them inside a service or helper class that is only responsible for these kinds of queries so your code is better organized.
Hey bro! I have faced a problem when I tried to connect the project with new database, when i did a migration I got a big error which told me that this global variable is trying to do its query before creating the tables , I don't know if it was bcz The AppServiceProvider did its lines before creating that tables when I run the command php artisan migrate. So what should we do better than this in order not to get this error when somebody try to run the project
Reset all the migrations using the command: php artisan migrate:reset Then, run the migrations: php artisan migrate Make sure to drop all the tables from the database if some fail to drop Alternatively, roll back all migrations and then re-run them using the command below: php artisan migrate:refresh
In livewire 3 , i am facing a problem if i try to do this on mount i am getting an error i cant do any complex query in livewire 3 which contains groupBy, select, orderBy etc. E.g i am doing this on mount method
thank you
Thanks for watching.
to be honest this is the best channel i watched in years if you will do paid courses sign me up !! thank you !👍
Thank you, glad to hear that. I'm planing to release some paid courses but want them to be alot better than my youtube videos, will make announcements once the courses are out.
Thank you 😄
Thank you. Very helpful content.
make the video for backpack package in laravel
good job bro
Thank you
Hi thanks for this tutorial, is good or bad to create a static function in User model topUsers a return
self::withCount('ideas')... ? and called from AppServiceProvider as User::topUsers(); to passed to the View share facade?
Thanks for watching. Generally speaking on small projects it's not a problem to do that . However, if you see or know that the User Model might be getting too big or you have too many static methods like the topUsers, you are better off refactoring or having them inside a service or helper class that is only responsible for these kinds of queries so your code is better organized.
why subtitle video is closed?
I think they are active now, they are auto generated by youtube, might take a few minutes for it to be available.
Hey bro!
I have faced a problem when I tried to connect the project with new database, when i did a migration I got a big error which told me that this global variable is trying to do its query before creating the tables , I don't know if it was bcz The AppServiceProvider did its lines before creating that tables when I run the command php artisan migrate.
So what should we do better than this in order not to get this error when somebody try to run the project
Reset all the migrations using the command:
php artisan migrate:reset
Then, run the migrations:
php artisan migrate
Make sure to drop all the tables from the database if some fail to drop
Alternatively, roll back all migrations and then re-run them using the command below:
php artisan migrate:refresh
In livewire 3 , i am facing a problem if i try to do this on mount i am getting an error i cant do any complex query in livewire 3 which contains groupBy, select, orderBy etc.
E.g i am doing this on mount method
Should be able to these queries in mount. What kinda error are you getting? can you share it
@@yelocode i have so question, but I can't share link here youtube automatically removing it
you shall not get sick again
I hope so too