The essential news about content management systems and mobile technology. Powered by Perfect Publisher and XT Search for Algolia.
The News Site publishes posts to the following channels: Facebook, Instagram, Twitter, Telegram, Web Push, Tumblr, and Blogger.
It’s that time of year again. You can save huge amounts of money on everything from training courses to full applications. This year, we’ve compiled a list of all the hot sales from our partners and listed them below. If you’ve been thinking about buying any of these, now is the time.
blackfriday2023
Save on all Beyond Code products:
php artisan
tinker
on steroids.Spatie offers coupons for their two SaaS products:
There's also a 30% discount on all their courses:
They also have a 30% discount on all their digital products.
Each day, they also have a special promotion with even deeper price cuts. You'll find more info in their promo movie.
Introducing the Ultimate Vue Bundle! Get all the courses you need to master Vue.js and the wider ecosystem, along with the certificate to prove it! Build scalable, robust Vue.js apps knowing all the best practices, tips, and techniques from Vue.js experts and Core Team members. Get access to:
Save 64% with this Killer Deal! Buy now at https://vue.school/laravelbundle
Once a year JMac discounts his courses and services - which are already priced low. So, these deals are crazy.
Harpoon - The forward-looking time-tracking and
invoicing software that helps your team plan & forecast a
profitable future. Get 50% off your first 6 months
by using coupon code: BLACKFRIDAY23
Securing Laravel - Get 25% off the essential security resource for Laravel devs, covering everything you need to keep your apps secure through weekly security tips and monthly In-Depth articles.
Practical Laravel Security - Use promo code "BLACKFRIDAY" to get 25% off the hands-on Practical Laravel Security course that uses interactive hacking exercises to teach you how to keep your applications secure - because learning about security doesn't have to be boring!
Laradir for Teams is on for $599/year. Price will go up to $1,499/year in the new year.
Gitamic - all prices are reduced by 30% or more
Transl.me - Simplifying and automating content localization in Laravel applications. Sign up for early access and enjoy up to 60% off on launch!
Backpack - The first premium admin panel in the
Laravel ecosystem has a huge sale - 40% discount across the board.
This is an excellent moment to get a premium add-on for an
incredible price! Just use the BLACKFRIDAY2023
coupon
on checkout. It expires after 40 purchases or Dec 1st, so hurry
up!
The discount code is for 30% off:
BLACKFRIDAY2023
Servers for Hackers - $40% off all courses and books. Scale your apps, don't waste time on server issues!
CloudCasts - 40% lifetime access to all AWS courses. Understand AWS and accelerate your career!
Where possible, we use affiliate links, which give us a small kickback and help us run this site.
The post Laravel Cyber Deals appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/laravel-cyber-deals-2023
Hello everyone, Caen here! I'm excited to share with you a
recent addition I made to the Laravel framework (PR #48845) that I believe will simplify your number
formatting needs. I've introduced a new Number
utility
class that provides several new helpers to format numbers, and it
should be available in the next Laravel release this week.
As another bonus: the helpers are locale-aware, so you can format numbers according to the current locale, either globally, or on a per-method basis!
In many applications, there's often a need to format numbers according to different requirements, such as displaying them as currency, percentages, or human-readable file sizes. Laravel didn't have a dedicated utility for this, so with the help of the community, I decided to create one. I've been working on this utility class for a a little while now, and am really excited that it was merged into the framework. Let's take a look at what it offers.
Number
ClassAll methods are part of the
Illuminate\Support\Number
class:
use Illuminate\Support\Number;
Using the format
method, we can format a number
according to the current locale.
Number::format(25) // 25
Number::format(100000) // 100,000
Number::format(123456789) // 123,456,789
We can also specify a custom locale to format the number according to that locale's rules.
Number::format(123456789, 'en') // 123,456,789
Number::format(123456789, 'de') // 123.456.789
Number::format(123456789, 'sv') // 123 456 789
The formatPercentage
method formats a number as a
percentage according to the current locale.
Number::toPercentage(25) // 25%
Number::toPercentage((1/3) * 100, precision: 2) // 33.33%
Here's another fun method used to format various currencies with locale support. Perfect for your webshops!
Number::toCurrency(10) // $10.00
Number::toCurrency(25, currency: 'EUR') // €25.00
Number::toCurrency(5.49, currency: 'EUR', locale: 'de') // 5.49 €
Here is the toFileSize
method which actually is the
whole reason behind this utility class. I first submitted a PR to
add a File::bytesToHuman()
helper (PR #48827), which Taylor then suggested we add as part of a new
Number
class.
Number::toFileSize(1024); // 1 KB
Number::toFileSize(1600, precision: 2); // 1.56 KB
Number::toFileSize(1024 * 1024 * 1024 * 5); // 5 GB
Next up is also a quite fun one for when you want something that's more readable than precise. It converts numbers to a human-readable string.
Number::forHumans(1000) // 1 thousand
Number::forHumans(12345) // 12 thousand
Number::forHumans(12345, precision: 3) // 12.345 thousand
We can set the locale globally using the setLocale
method, for example in a service provider:
Number::setLocale('sv');
You can also use the withLocale
method which
executes the given callback using the specified locale and then
restores the original locale:
Number::withLocale('sv', function () {
return Number::format(123456789);
});
I hope this new addition makes your life a bit easier when dealing with number formatting in Laravel. Please free to check out the next Laravel release and incorporate this utility class into your projects. Happy coding!
The post Introducing the Laravel Number Utility Class appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/laravel-number-utility-class
Read more https://build.prestashop-project.org/news/2023/do-you-speak-prestashop-october-2023/
The Brevo Webhook Manager CLI for Laravel provides a convenient way to manage Brevo webhooks from the CLI:
The main features of this package includes:
You can use it to create inbound, marketing, and transactional webhooks, as well as the ability to list and manage existing webhooks.
Brevo is an all-in-one platform to automate your marketing campaigns over email, SMS, WhatsApp, or chat. They have an extensive API, which includes support for a wide range of Webhook options. Check out How to Use Webhooks to learn more.
You can learn more about this package, get full installation instructions, and view the source code on GitHub.
The post Brevo Webhook Manager CLI for Laravel appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/brevo-webhook-manager-cli-for-laravel
The PEST team just announced the release of a brand new plugin for Pest PHP: Stressless.
It's a fresh new addition to the Pest PHP family, and it brings the power of stress testing to the PHP ecosystem. It integrates seamlessly with Pest PHP, combining the power of stress testing with the simplicity and elegance of Pest's Expectation API.
Check out the YouTube video above in which Nuno Maduro, the creator of PEST, demonstrates the Stressless plugin.
It's effortless to get started with Stressless — all you need to do is require the package using Composer, and you're ready to go!
There are two main ways to use Stressless. You may use it to quickly stress test your application from the command line:
./vendor/bin/pest stress example.com --concurrency=5 --duration=10
Or you can use it to write stress tests in your Pest PHP test files:
<?php
test('black friday', function () {
$result = stress('example.com')
->concurrently(5)
->for(10)->seconds();
$requests = $result->requests;
expect($requests->failed->count)
->toBe(0);
expect($requests->duration->med)
->toBeLessThan(100.0); // 100ms
});
Check the documentation to get started with Stress Testing / Stressless: Stress Testing →.
The post Stress testing with Pest with the new Stressless plugin appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/pest-stressless