Laravel Mailbox in-depth walkthrough
Marcel Pociot recently released another awesome package: laravel-mailbox. In a new post on his blog he guides us through the code.
Read more [marcelpociot.de]
Posts tagged with laravel
Marcel Pociot recently released another awesome package: laravel-mailbox. In a new post on his blog he guides us through the code.
Read more [marcelpociot.de]
Caleb Porzio created a new Laravel package with a couple of very usefull functions.
I packaged up all the helper functions I use in my projects. They are cool. You can install it by running composer require calebporzio/awesome-helpers.
Read more [calebporzio.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
Laravel comes with a very handy tinker command out of the box. Unfortunately running multiple lines of code on the command line, or editing the code you just executed, can be a bit bothersome. That's why we created a new package called laravel-web-tinker that allows you to run arbitrary code in your…
Mohammed Said shows a great way on how to handle db connections in a multi tenancy Laravel app.
The majority of applications just communicate with a single database. However, a considerable portion of laravel applications communicates with multiple databases. There are some neat packages that help with managing multiple connections, but it'd be useful if we understand how database connections work in Laravel, so let's dive in.
Read more [divinglaravel.com]
TIL #Laravel's clear:cache command has an optional "store" argument. This makes it really easy to quickly clear out the 3700 queued jobs you don't want to wait for. pic.twitter.com/dz0csvR3Ht
— Alex (@AlexVanderbist) January 31, 2019
Read more [twitter.com]
The past few days videos have been added to the Laracon EU channel on YouTube. It now contains recordings of all talks given at the 2018 edition of the conference.
Here's a playlist that contains all videos of the 2018 editions.
Below you can watch the talk I gave on our medialibrary.
Neat little Laravel internal tip: When you want one of your classes to forward method calls to a different class, you can use the "ForwardsCalls" trait. The trait takes care of forwarding the method calls as well as catching possible exceptions. pic.twitter.com/F4dGypBNk7
— Marcel Pociot (@marcelpociot) January 23, 2019
Read more [twitter.com]
Christopher Pitt has created a new package called phpx that bring the power of LiveView to PHP.
A few days ago, Caleb Porzio demonstrated some work he’s been doing; to replicate Phoenix LiveView in Laravel. I’ve been building PHP preprocessor stuff for a long time, and this really inspired me to try the same thing.
Read more [assertchris.io]
Having a lot of migrations might slow down your tests. My colleague Alex shares how you can fix this.
One of the larger test suites I run daily has about 1500 tests in it. It takes just over 4 minutes to complete at an average of 160ms per test. That's pretty good. However, lately I've noticed a delay between starting PHPUnit and running the first test. This delay grew to the point where running a single test would take almost 12 seconds with the setUp method using most of that time on... migrations.
Read more [alexvanderbist.com]
? Tip: sometimes I want to perform a quick validation check outside of the normal “Validator” flow and then respond with the same HTTP response format the validator would use. You can easily do this using “ValidationException::withMessages()”… #HiddenGem pic.twitter.com/1Du0e8yrSH
— Taylor Otwell ⚗️ (@taylorotwell) January 17, 2019
Read more [twitter.com]
Here's a cool video by Caleb Porzio where he demonstrates his proof of concept port of Phoenix LiveView in Laravel.
I recently read through this blog post about Phoenix LiveView and got really excited for what might be possible in Laravel. I started hacking on a little proof of concept in Laravel and quickly realized this might be a game changer.
Read more [calebporzio.com]
On the Laravel News blog, Tim MacDonald wrote a nice collection of tips on how to make PHPUnit tests run faster.
Having a fast test suite can be just as important as having a fast application. As a developer, getting feedback quickly about the state of your code allows for a much quicker development turnaround. Here we are going to run through some tips you can implement today to make your tests run faster.
Read more [laravel-news.com]
Laracon Online 2018 was held last year in February. It featured cool talks by Chris Fidao, Wes Bos and of course Laravel creator Taylor Otwell. In tandem with the start of the ticketsales of the 2019 edition, the videos of the 2018 edition have been released.
Watch them all here:
Read more [laracon.net]
One of the smallest pieces of middleware I've written, but feels a lot cleaner to abstract it instead of having these implementation details in a controller pic.twitter.com/AR3vOMKMM9
— Sebastian De Deyne (@sebdedeyne) January 8, 2019
Read more [twitter.com]
In this video tutorial Andre Madarang gives a clear intro in how to use GraphQL in a Laravel app. The packages he uses are Lighthouse and vue-appolo.
laravel-backup is a Laravel package that can backup your application. It can create a zip containing a dump of your database together with other files that you can select. Using the power of Laravel's filesystem abstraction this zip can than be uploaded to one or more remote filesystems. The package…
When adding a form to a public site, there's a risk that spam bots will try to submit it with fake values. We recently released a new package, called laravel-honeypot, that can detect these spammy requests. How honeypots work The majority of spam bots are pretty dumb. You can thwart most of them by…
Christopher Rumpel launched a new video series on how Laravel works on the hood.
Laravel Core Adventures is a video series which explains how Laravel works under the hood. You will get several videos on different difficulty levels to learn about each topic. The first videos below are about the Laravel request lifecycle. Expect more to come when the full site is released in early 2019.
Now that 2018 is coming to a close, a lot of awesome people have written a recap post. Here's mine! The most significant change on a personal level is that my girlfriend an I bought a house in Ghent. Together with our two kids, we moved this summer, and we now live in an awesome house that's very…
Over at the Oh Dear! blog, my buddy Mattias described how we use Gitlab CI to test our app.
That's why we're releasing our Gitlab CI pipeline that is optimized for Laravel applications. It contains all the elements you'd expect: building (composer, yarn & webpack), database seeding, PHPUnit & copy/paste (mess) detectors & some basic security auditing of our 3rd party dependencies.
Read more [ohdear.app]