Using || operator in PHP
@if (url()->previous() != Request::root() . '/admin/news' || url()->previous() != Request::root() . '/admin/pages')
In this case only the first statement before OR is working, but second is always ignored. I'm using it incorrectly?
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!