🚀 I’ve tagged 1.0 of spatie/laravel-pdf
🔥 This package can create PDFs from Blade views
🎨 You can use modern CSS syntax and frameworks like Tailwind to style your PDFs.
🧪 Comes with a fake so you can easily test code that generates a PDF
😍 Lots of Laravel niceties
🌎 We’re proud to announce Worldwide Spatie Discounts! Next week you can enjoy unimaginable discounts the entire Spatie catalogue.
✨ Every day we’ll introduce a magical discount for one of our products
We've made a fun video about it!
👀 Keep an eye on
🚀 Ray is here: a tool that helps you to debug faster. Think of it as something in between dump-die-debugging and Xdebug.
Free demo:
Blogpost:
Full docs:
We added a lot niceties for
@laravelphp
#php
😍 Laravel’s Http client is amazing. Using just a bit of code, you can specify a timeout, retry attempts, and immediately get the result as JSON.
Is there any other HTTP client written in
#php
that makes it this easy?
💪 Laravel
Dear Saas owners,
Every month I have to go to your site, to download the invoice for the month and forward it to our accountant.
Please, for the love of the one you worship, add a field to specify to which email address invoices of your service will be mailed.
Thanks!
🚀 We just released a mini-package called spatie/holidays that can calculate all public holidays for a country.
Right now Belgium, Netherlands and Hungary are supported, but we’re welcoming PRs for other countries.
#php
🚀 I'm proud to share that our team has released a new major version of Ignition. It's the most beautiful error page you ever seen, and it will be the default in
@laravelphp
9
👍You can also install it in Laravel 8!
🧵 Let's take a look at all the features
🔥🔥🔥 Did you know that the latest version of Ignition - the
@laravelphp
error page you're already using - comes with AI solutions out of the box?
To enable this feature, add this to your .env
IGNITION_OPEN_AI_KEY=<your-open-ai-key>
More info:
🧘♂️I’ve been struggling with some mental issues because <life happened> and been going to therapy for a couple months. And I can tell you that - if you find someone good - it really helps, like a lot!
👍 If you're struggling with something, don't be afraid to go talk to someone
The next 24 hours, we’re giving away the
@getmailcoach
video course for free!
This is our way of nudging people to stay inside and do something useful.
Use this coupon (gives a discount that matches the course)
STAY-INSIDE-AND-GROW-YOUR-BRAIN
RT = ❤️
🧪 In each big project I have a routes file called “dev.php” that only gets loaded in a local environment. It contains routes to easily tests stuff, like for instance mails.
This way it’s easy to work on view of a mail without actually sending it.
🚀 Our newest package, called Laravel Health, has been released:
👍 Easy to install
✅ A collection of built-in checks
🧑💻 Add checks of your own
📈 Health dashboard
⏰ Notifications
👀 Integration with
@OhDearApp
Blogpost:
#php
🐘 In PHP, if you don’t use curly brackets with an if statement, than the next statement is the body of that if statement.
Personally, I find this very hard to read and always refactor to something that’s a little bit more explicit.
#php
🧑💻 Working a bit on my new PDF package tonight
⚠️ Still very WIP, but what’s there is already working
🙌 Feel free to PR features and API polishments
#laravel
#php
🖐️ Who here has felt the pain of making a email look good in all email clients?
I recently stumbled upon a technology called MJML that makes this process much easier. You just use MJLM syntax to craft your mail, and the output is HTML that will work in all clients.
🔥 If you need to process a lot of models, don't load them all into memory, but chunk them.
Laravel has a beautiful `each` method for this.
#laravel
#php
🥁 Announcing Front Line PHP: an e-book and video course on writing modern applications using PHP 8
📘 We’ll cover PHP 8, best practices and much more.
😍 The video course will be free!
📬 Subscribe to our mailing list for previews and early access.
#php
🚀 Our newest package, laravel-data, has been released. This one can replace Form Request,s API resources, it will help you avoiding describing data structures multiple times
📘 Docs:
✍️ Post:
🏅 Excellent work by
@rubenvanassche
👍 I’ll be live-streaming
@enunomaduro
’s and
@taylorotwell
’s talks at
@LaraconUS
via my YouTube channel.
(Yes, I asked
@taylorotwell
and he was fine with it 👍)
I’ll post the YouTube event links soon!
🙏 Let’s hope there is strong enough wifi
🐘 In Composer 2.4 there’s a new `bump` command that allows you to update the versions mentioned in composer.json to the latest versions within the constraints.
🔥 The new Laravel Vite plugin unlocks hot reloading of Blade files.
🔄 So when you save a Blade file in your IDE, your browser will refresh automatically.
⚙️ Just add this part to your vite config: (taken from this blog post: )
🐘If you need some simple pattern matching in
#PHP
, you don’t need to immediately turn to regex.
Take a look at fnmatch:
It was made for filenames, but it works with all strings 👍
I’m never going to forget the good time I had a Laracon India.
❤️ The Laravel India community rocks! ❤️
If you read this, do yourself a favour and buy a ticket when next year’s edition is announced. You won’t regret it! 👍
#laraconIN
🚀 Laravel Dashboard v3 has been tagged!
This package allows you to build beautiful Livewire powered dashboards in no time!
👍 Now ready for Livewire v3
#laravel
#php
🔥 Did you know that if you return a Mailable in a route, that the mailable will get rendered in browsers?
Pretty handy for developing mails!
In my projects I often have a routes/dev.php file that contains such routes (it will only be loaded locally)
#laravel
#php
🔥 In many cases avoiding `else` and using early returns will greatly improve readability of your code.
I wish somebody would have told me this sooner in my career.
Contrived example in the image. Real world example:
#bestpractices
🧑💻 Working on a nice little Laravel package called laravel-model-flags
This one allows you to easily create idempotent pieces of code.
If have already coded these functions up in sooo many projects, glad that I’m finally packaging them up.
#laravel
#php
📬 Proud to announce Mailcoach, a solution to send out newsletters at a low cost
Mailcoach can be used a stand alone app, or as a package in your own
@laravelphp
application.
Launching soon, subscribe now to be kept in the loop!
RT=❤️
🧪 Our upcoming video course Testing Laravel will help
you write quality tests.
🧠 We’ll show you the basics, how to test a
@laravelphp
app, and all our own testing tricks.
👍You’ll ship less bugs to production and refactor without fear.
#php
#testing
When somebody makes an error in our team, we never blame the keypresses of an individual, but rather the team processes that fell short.
When bad things happen, we see it as an opportunity to improve our workflow and do it better in the future 👍
📺 Announcing Laravel Beyond CRUD, a premium video course and book by
@spatie_be
that shows you a way of building laravel-than-avarage
@laravelphp
apps
🚀 Will be released in September 2020.
Blog post:
RT = ❤️
📦 Announcing Laravel Package Training, a premium video course by
@spatie_be
📦
🧠 You’ll see our proven workflow, learn how to leverage GitHub Actions, and much more!
🏊♂️ We’ll even source dive
@spatie_be
packages together!
RT = ❤️❤️❤️
🧠 Learn how to create larger than average
@laravelphp
applications in our new book + video course called Laravel Beyond CRUD.
This knowledge is built from years of experience
@spatie_be
has building robust apps
Many things apply to smaller projects too!
🐘 PHP is a fantastic language that has seen many cool improvements over the past few years.
Currently, only a very few people (can) work on the language itself. This is obviously not healthy and hopefully this situation will improve in the future.
laravel-websockets is trending at
@github
. We're at number 4!
This is btw not GitHub's
#PHP
trending list, but the one including all languages
#mindblown
🤯
@marcelpociot
are really happy that the package gets such a warm welcome!
🚀 I’ve just released Visit, a CLI tool for humans to make network requests
In this blog post I explain what this tool can do (and why I am not using curl for this):
✍️ Laravel PDF is feature complete, so writing the introductionary blog post now
I’ll release the package after one of my colleagues has reviewed it! You can already take a look at the code here:
#pdf
#laravel
🚀 Our new course is now available.
You'll learn to test your
@laravelphp
app from scratch. We also show many tips and tricks to sharpen your existing testing skills.
📺 6+ hours of video
🧪Covers
@pestphp
and
@phpunit
☝️Access to private Q&A session
🚀 spatie/laravel-onboard has been released.
This
@laravelphp
package tracks onboarding steps for new users.
🧑💻
@calebporzio
made the first version that we now maintain.
@Riasvdv
did some good work polishing it
✍️ Blogpost:
#php
🔥🔥🔥 The third (and probably final) iteration of the search QueryBuilder macro. Now it's save to add extra wheres to the query.
Pretty cool, right?
Retweeting this will do you no harm!
#laravel
#php
I’ve just open sourced
You’ll find the code that is deployed to our server in this repo:
There’s a lot going on there. Integrations with Vimeo, Paddle, GitHub Amazon, Mailcoach, Nova, …
Blogpost incoming!
If you’re working on a project that is deployed on a server with an other version of PHP than your local environment, then you should use the `platform` option in composer.json.
This will let composer only use packages that are compatible with PHP 8.0 (my local version is 8.1)