It's a very tedious task to review someone's code....thanks sir for bringing this great CODE REVIEW content. This actually helps us to rectify our mistakes because we also do a lot of these bad coding practices
@JSONFX3 жыл бұрын
This is by far the best code reviews i've seen in laravel here on youtube. Well done! I'll be watching more videos and learn more.
@friedrichvillegasmurillo97752 жыл бұрын
smooth
@jordysinke3 жыл бұрын
The $request->validate() function also return an array of validated fields, you can use that if you don't want a separate FormRequest class.
@JeremyStreich Жыл бұрын
He knows that, but he typically strongly pushes for form requests because he likes small files. I personally think that separate form request objects lower cohesion and increase coupling, and aren't my preference in most cases.
@ryiad20103 ай бұрын
very helpful video. We hope to produce more videos like this to assist junior developers. The video helps shorten the learning curve for junior developers
@grzesiekb91422 жыл бұрын
I love your code reviews
@nomamkhan174 Жыл бұрын
me to sir.
@mahmoudelsherbeny60032 жыл бұрын
you are great sir, this help us to avoid these mistakes. Thank you!
@venzolarte7023 Жыл бұрын
I learned a lot about this topic, I hope more code review contents sir!
@ricko133 жыл бұрын
Thank you for another daily video Sir.
@RodrigoMedeirosBrazil3 жыл бұрын
Those code reviews help me to much! Thanks for this content!
@ivandez18113 жыл бұрын
me too!
@onestpaul33533 ай бұрын
Thank You So much. This Review is amazing
@joshuaheathcote21163 жыл бұрын
I love this! This is probably the best thing I've come across on KZbin for learning.
@steveag80183 жыл бұрын
Amazing Video Sir! I’m trying to climb to intermediate level and playing around with packages, and your video truly amazed me! I have learnt a lot from u.
@mahmoudelbashir9984 Жыл бұрын
you are doing grate thing sir! thanks!!
@adebajooluwaseyi21243 жыл бұрын
another bombshell video, my daily routine
@belce19823 жыл бұрын
Thanks Povilas as always! Keep working!
@markmacapagal293 жыл бұрын
Everyday I learned new things. Thanks
@SmailPeche3 жыл бұрын
Thank you, i learn new things everyday with you, thank you very much
@muzika50012 жыл бұрын
Nice explanation!🎉
@tenariusstuff73033 жыл бұрын
It´s very awesome to sharing your experiences with us. Thank you very much for that.
@RenanFxDs013 жыл бұрын
good video as always, greetings from Brazil
@matiasmartinflores16833 жыл бұрын
yo man, your seniors tips are awesome, i realy like when the code it transformed in more readeble. i will implements all what i have learned today
@GergelyCsermely3 жыл бұрын
Thank You, very good video as usual.
@ممدو-ص1ث3 жыл бұрын
wow , that was amazing 😍😍 pls keep going this way
@abdullah.alhabal6 ай бұрын
you are Great man ✨
@felipeveiga873 жыл бұрын
thanks from Brazil!
@AndersFloor3 жыл бұрын
Great videos. Insightful, to the point. Thanks!
@developersmeetup5363 жыл бұрын
Thanks for the code review, really learned a lot
@Rocknrolla1123 жыл бұрын
more reviews please ! :)
@cbob37693 жыл бұрын
You would need to manually map is_donor from the database to blood_donor from the request
@shamarkellman3 жыл бұрын
For the home route you can just a redirect rather than having it load the view
@JouvaMoufette3 жыл бұрын
Actually I bet it's for a different reason. I bet it's because logging in directs you to /home by default, and the correct solution there would be to configure the Auth portion of the code to default its home page to /
@denisgusto3 жыл бұрын
Thanks teacher!
@Jurigag3 жыл бұрын
7:24 personally i don't like it, it's better to pass variables from controller into the view. Using auth()->user() in blade file causes uncessary function calls, as well it adds unnecessary logic(of getting current authenticated user) to view - if there is any method calls in views, especially like chained calls then i think it's too complex.
@_xplore2 жыл бұрын
Thanks.
@71055973 жыл бұрын
Hey Laravel Daily, this videos are so useful!, they help me a lot. What IDE and extensions (if this is the case) do you use to develop with laravel (backend-api). My VS Code doesn't autocomplete anything
@LaravelDaily3 жыл бұрын
I don't know about VS code, I use phpstorm
@farham_harvianto3 жыл бұрын
What is the Editor and Plugin? awesome
@JouvaMoufette3 жыл бұрын
I'm not a betting man, but I feel like the /home URL exists because that's the default for when you log in, and the correct solution there would be to configure it to use the / path instead. I can't think of any other reason why the path for /home exists
@diatm15063 жыл бұрын
I agree with you. Do you agree with me? There are 2 routes / login / register for non-user authentication. If there are sign in and sign up forms on one page, then it is correct to do the path / But if they are divided into separate pages / login, / register then what will the path / be? You need to redirect when entering the site along the path to / to / login (aliase / and /login)
@travholt3 жыл бұрын
Very helpful!
@vitouvitou52693 жыл бұрын
Thanks teacher
@1234matthewjohnson3 жыл бұрын
great stuff!
@ahmedalkhazouri3653 жыл бұрын
Thank you
@codewithtee3 жыл бұрын
Beautiful ❤️
@yungifez3 жыл бұрын
What's the difference between put and post
@javierr58453 жыл бұрын
these series help a lot, excellent work as always. I wanted to ask about what approach you consider best when displaying different columns of a table when using laravel as API, for example when I extract a single post from the database I want to show all the fields, but when I request all of them, I only want to extract 2 fields. In this case it is better to create two separate resources or specify the fields in the corresponding method? thanks a lot!
@Jose-oz1by3 жыл бұрын
You can use pluck function in collections if your collections has 3 field like: name, age, birth_date and You only want to retrieve name you can make somethign like this: $collection->pluck('name'); (fake example: User::get()->pluck('name', 'anotherfield);) check laravel documentation :) laravel.com/docs/8.x/collections#method-pluck
@elandlord3 жыл бұрын
Using the query scopes sounds like it would solve your problem. Instead of simply calling Model::all();, you could also write: Model::query()->select(‘field_1’, ‘field_2’)->get();. It will solve your problem and also increase the speed the records are loaded. You could refactor these select statements to a local or global scope (see: laravel.com/docs/8.x/eloquent#query-scopes ). You could create a scope for when you only want to extract the two fields for a single post, add them to your Eloquent Model class (or create a separate class like so, for example a user Eloquent model): public function newEloquentBuilder($query): UserQueryBuilder { return new UserQueryBuilder($query); } Example query scope for users:
@rakeshbisht773 жыл бұрын
Hi sir , Is it good practice to use static method in laravel model file like below public static function question($paper_id) { return self::where('paper_id',$paper_id); }
@Spoutnik17073 жыл бұрын
Do you use any extensions/plugins with phpstorm?
@LaravelDaily3 жыл бұрын
Not really, but I recommend Laravel Idea
@amitdev14853 жыл бұрын
Great
@rohannnsingh843 жыл бұрын
sir please can u make a video on Auth customization which is inbuilt in laravel as i work in api development and i wanted to customize Auth() of laravel or any suggestion please
@bumblebity29023 жыл бұрын
Sir, how to avoid, FormRequest and middleware conflict, when in Middleware class I get error that FormRequest class does not exist. I use store method which validates from FormRequest class and also is protected by middleware class which use basic Request class. How fix that issue?
@ghifarik3353 жыл бұрын
Hello sir, may i know the ext for filling up some form?? Thank you
@LaravelDaily3 жыл бұрын
Fake Filler.
@learning77603 жыл бұрын
Hello sir, we need a apiato laravel video session
@javieru58713 жыл бұрын
I think that project was written by at least 2 different developers. You can tell that because of the inconsistencies pointed out.
@nouira21853 жыл бұрын
is there a way to request a user re-authentification when he try to modify something important (with jetstream ?) thanks !
@bumblebity29023 жыл бұрын
Use middleware class.
@AbrarAhmad-mz8vl3 жыл бұрын
Laravel confirmed middleware. Which ask for password again and store confirmed session for few minutes.
@mateusssantana3 жыл бұрын
Hello, first of all I would like to congratulate you for the videos and tips about laravel. I really appreciate that. I have a doubt. In controller of update profile, when we have the model $fillable field setted, we can't just pass the request to update method? Like ```auth()->user()->update($request->all())``` safely? The fillable attribute in model doesn't grant that none unspectable fields like "is_admin" will be injected? Thanks a lot
@LaravelDaily3 жыл бұрын
You can. But, in this case, is_admin is fillable, too.
@mateusssantana3 жыл бұрын
@@LaravelDaily Oh of course! Great job. Thank you!
@abdulsamiaalashiq59253 жыл бұрын
can i send project to review, the project by laravel and laravel-mix vue, vuex, vue route ?
@abdulsamiaalashiq59253 жыл бұрын
the project is user dashboard wit sanctum api auth
@LaravelDaily3 жыл бұрын
Sorry, currently I have already a long list of projects to review. Maybe in a few months.
@abdulsamiaalashiq59253 жыл бұрын
@@LaravelDaily ok Thanks a lot for this videos, it's very helpful
@info-pedia Жыл бұрын
what is this IDE please ?
@LaravelDaily Жыл бұрын
PHPStorm
@DerTim3 жыл бұрын
I have a request for a video! How to deploy laravel on plesk. Keep struggling doing this. Cant migrste the database and I dont want to switch to a vps because i dont know how to configure a Mailserver :/
@LaravelDaily3 жыл бұрын
I don't recommend using shared hosting for any Laravel projects. Learn how to use vps, this is my advice.
@shoaib98003 жыл бұрын
Share the git link of the code, please.
@LaravelDaily3 жыл бұрын
I don't have a permission to do that, it's not my code.
@EmonKhan-sr5zg3 жыл бұрын
In profile update - it can be more shorter with all() method. Just need to undeclare those protected property (like: is_admin) on the $fillable property or define in $guarded as a same. Then we can use $request->all() to save the model. Tip: whenever we need to update $guarded property, we can get the object $user = auth()->user() then $user->is_admin = 1 then $user->save()
@rolandosanches23443 жыл бұрын
Not relate to Laravel but (bootstrap stuff)... he is using primary color in all button. Primary should indicate main action in the page and all other button shold be secondary. I prefere to use success color to indicate buttons that add something.
blood_donor key must've contained a boolean value.
@bc00783 жыл бұрын
Instead of looping the errors in the blade to see them, you can also check them in the debug bar in the Sessions section under errors
@diatm15063 жыл бұрын
Please Sir Laravel Daily make a video course Chat. Laravel8 + Vue 3 or React + pusher (websockets) + Restfull api + jwt etc I would take it for 200 dollars (Or any other price) or more. I want to become a developer and master everything Template chatvia -> themeforest