Part 16½ - Fixing a Bug, Making Navigation States work [How to Build a Blog with Laravel Series]

محسن
65 بار بازدید - 7 سال پیش - So today's quick video is
So today's quick video is to fix an error I realized we still had in our application while I started looking through comments you guys were leaving. Our navigation buttons on the top don't change the active class as we move around the website. So now is time to fix that. To do this we will use the basic PHP terenery operator. This is an inline "IF-Statement" where we can set an active class if the conditional statement is true. The conditional statement we want to use is: Request::is
7 سال پیش در تاریخ 1396/04/25 منتشر شده است.
65 بـار بازدید شده
... بیشتر