We all know that file app/Http/routes.php is used for listing all possible routes we need for our application. But what if we need to define a rule for "everything else"? Like, we have a list of our routes, and if the URL doesn't match any of those rules - we want to, for example, redirect to homepage instead of showing 404 error.
Laravel logging mechanism is pretty simple - it writes all the errors to a file at /storage/logs/laravel.log. It's convenient until the file gets bigger. And then you have a problem to find a bug from yesterday or some days ago. How can you solve this?
Everyone had a situation when one variable had to be accessible in every view file, for some of us it was $user, for others it was $currentPage or any other case dependent variable. And some of you use Base Controller for that. Let me show you why it's wrong.
While reading Twitter feed everyday, I see more and more new people in Laravel community. At the same time there are the most active ones who deserve following and thanking for their input to the community. So I decided to list them all with links to their work - you need to know our heroes, and also interesting to dive into their past and what they had done throughout their careers.
Hey guys, need your help and opinion. While working on my QuickAdmin package vision, decided to "get outside the building" and talk to people - what do you actually need? What is the pain point? Is there a problem at all?
These days more and more clients ask for integrations with external marketing services, like sending email via Mailchimp. Since I have that built in my newsletter service called LinksLetter (it helps to send these emails every Thursday), I want to show you how simple it is.
A new monthly tradition continues - here are 10 packages I've found this month, thanks mostly to Twitter and Laravel News blog. Uploading this as a SlideShare presentation, which I will present at my local Laravel meetup tomorrow, but you guys will be the first ones to see it. Also I will provide the links to actual packages below. Enjoy!
A few times I encountered a situation - a store() or update() method with Request parameter, but I needed to add some additional value to the request before calling Eloquent functions. So how to do that? Apparently, pretty easy.