Composer Security Hardening
– php.watch - submitted by Ayesh
Security precautions Composer already has, and what you can do to improve them further.
Read more [php.watch]
Posts tagged with php
– php.watch - submitted by Ayesh
Security precautions Composer already has, and what you can do to improve them further.
Read more [php.watch]
When you are working with a one-to-many relationship, it is sometimes the case that a particular instance on the "many" side of the relationship is flagged as unique and important to your system in some way. It can be really handy to be able to access that unique instance in a first class way from your models. This post is going to cover how you can do that without introducing any new concepts into your application.
Read more [timacdonald.me]
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."
It looks like PHP will get fibers soon with PHP 8.1! That’s awesome! Or is it?
Read more [clue.engineering]
– ryangjchandler.co.uk - submitted by Ryan Chandler
When distributing console commands in a package or within an application, making sure data is in the correct format can be important. Let's build a make:user command that takes advantage of Laravel's validation helpers.
Read more [ryangjchandler.co.uk]
Using the newly released spatie/laravel-remote package, you can quickly execute Artisan commands on a remote server.
Here's an example that will clear the cache on the remote server.
php artisan remote cache:clear
In this blog post, I'd like to tell you all about it!
In this streaming session, you can see me build up the package from scratch. You can find the code seen in the stream in the spatie/laravel-remote repo on GitHub. If you want to learn how to build PHP and Laravel packages, consider purchasing our Laravel Package Training video course.
Earlier this year, we released Ray, a desktop app that allows you to debug faster. Instead of dumping values to the browser or console, Ray allows you to display debugging information beautifully in a dedicated window.
Since launch, Ray helps you debug local projects. Today, we're adding the most requested feature to Ray: the ability to connect to remote servers. All output of the ray() call, will be sent securely from your remote server to the local app via SSH.
Using this feature, you can quickly investigate problems on your production servers that you are unable to recreate locally.
In this short video you'll see a quick demo!
Quick @laravelphp tip: The `MailMessage` class has a `when` method that's useful to conditionally add things to the mailable. Great for adding optional lines. 🤠 pic.twitter.com/TGGb5J6zk2
— Wilbur Powery E. (@wilburpowery) February 22, 2021
Read more [twitter.com]
We've released a new package called spatie/laravel-prefixed-ids. In this post, I'd like to tell you all about it.
Let's take an in-depth look in this awesome feature that will be available by the end of this year.
Read more [stitcher.io]
Here's the recording of Laravel Worldwide Meetup #6.
Frank De Jonge walked us through improvement made in Flysystem v2. Stefan Baumgartner showed us the awesomeness that is TypeScript.
You can watch recordings of previous editions in this playlist on YouTube.
When a site is down, Oh Dear sends a notification every hour. Since last year, our notifications can be snoozed for a fixed amount of time (5 minutes, 1 hour, 4 hours, one day).
In the evenings and weekends, our users might not want to receive repeated notifications. That's why we've added a nice human touch: all notifications can now be snoozed until the start of the next workday.
In this blog post, I'd like to share some of the code that powers this feature. We'll focus on how the start of the next workday is calculated.
– gummibeer.dev - submitted by Tom Witkowski
How to use PHP-doc tags for better autocompletion in Blade views.
Read more [gummibeer.dev]
– michielkempen.com - submitted by Michiel Kempen
What is the TrustProxies middleware and how can it help you generate secure HTTPS URLs, even when running Laravel behind a proxy?
Read more [michielkempen.com]
When you use software that is open source, you'll sometimes run into issues or small bugs that have already been fixed by the community in a PR or an issue, but have yet to be merged and/or released. If you're impatient and need that fix now, composer patches can be a solution for this problem.
Read more [www.rias.be]
MeiliSearch is a simple self-hosted full-text search solution that's easy to integrate into a Laravel application–their team even maintains a Laravel Scout driver!
Read more [tighten.co]
💡 Advanced @laravelphp tip!
— Pascal Baljet (@pascalbaljet) February 3, 2021
If you're using the $attributes variable in a Blade Component, you're using the ComponentAttributeBag class, which is macroable 😏
I wrote a macro to dynamically toggle classes by accepting an array, just like v-bind:class in Vue.js! #Laravel #PHP pic.twitter.com/Uis7hykv20
Read more [twitter.com]
Using the new parallel testing feature that recently landed in Laravel, we managed to run the Oh Dear testsuite about four times faster.
Read more [ohdear.app]
Using @LaravelLivewire it is incredibly easy to display real-time progress of batched jobs! 🔥
— Willem Leuverink (@gwleuverink) January 18, 2021
Just drop in this simple trait & blade component and you're off to the races #hottip pic.twitter.com/I6K1zalzeJ
Read more [twitter.com]