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.
Bolt SQL is a brand-new database client from the makers of TablePlus.
This new client focuses on speed and more cloud integration so you can more easily share your setup across machines or with your team.
As a die-hard TablePlus user, I was excited to see this beta, and I noticed the speed as soon as I exported and imported data into it. Both felt instant. It's not 100% feature-complete with TablePlus, but I imagine it'll be pretty close once they finish the beta. Let's look at some of the features of this new app.
TablePlus mainly focuses on native experience and fast interaction with GUI. TablePlus runs completely on your machine, and all data is stored within it.
Bolt SQL moves to the cloud, allowing you new features like configuration synching on all users' devices, real-time collaboration, sharing charts and reports, and even more AI integration coming in the future.
Bolt SQL cherry-picked the features you use the mostand made them easy to access. The top priorities are performance, security, and privacy.
Bolt SQL supports real-time collaboration so you and your team can work together!
Sync and your data on all devices so you can work everywhere. Bolt SQL uses end-to-end encryption; no one can access it without the private key.
With Bolt SQL you can generate bar or line charts from your queries to easily visualize your data.
The Bolt SQL team is planning on implementing the following in the coming weeks:
You can use Bolt SQL for free on the basic plan, but that doesn't include any cloud features. If you want to try the beta, they include an early bird coupon in the top bar header of the site for 50% off.
Visit Bolt SQL for more details and try it. It works for MacOS and Windows, and a Linux version coming soon.
The post Bolt SQL - Fast and beautiful database client 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/bolt-sql-fast-and-beautiful-database-client
The Better PHPUnit test runner for VS Code now supports running PestPHP tests thanks to Joe Dixon and Caleb Porzio:
The Better PHPUnit extension automatically detects if
pestphp/pest
is a Composer dependency, and runs
pest
instead of phpunit
, meaning you can
use the same extension seamlessly for PHPUnit or PestPHP projects
🔥.
You can learn more about this extension and install it from the Visual Studio Marketplace page. Also, you can find the source code for this plugin on GitHub.
Note: if you already have this extension installed, Pest support should be available once the extension is updated (which happened automatically for me).
The post Run Pest Tests in VS Code with Better PHPUnit 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-support-added-to-better-phpunit-vs-code-extension
The Laravel News homepage has various sections displaying the latest articles, trending articles, recently covered packages, newly released tutorials, and more. Each section fetches its data through computed properties on our Homepage component.
As a result, this process causes numerous queries for a single page and here is video showing how we solved caching these:
<iframe width="560" height="315" src="https://www.youtube.com/embed/nwobvYmFHdM?si=-5OZ5vBqt46CkpdO" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>Or read on to see how we did with it in article format...
Here is an example of one of those computed sections that pulls the articles out:
public function recent(): Collection
{
return Article::active()
->latest()
->limit(6)
->get();
}
In our case, the landing page generates nearly 20-25 queries, which seems unnecessary.
Does the most frequently visited page on the site need to run that many queries?
Of course not!
That's where component caching comes in. Laravel Livewire has several ways of caching to enhance efficiency while reducing resource usage.
The simplest is to just throw a cache:true
to the
computed property:
#[Computed(cache: true)]
public function recent(): Collection
{
return Article::active()
->latest()
->limit(6)
->get();
}
Livewire will cache this for one hour and then be cleared by default. However, what if you have a lot of sections but only need to clear the cache on one? This style will only work if you clear all the cache.
In the newest Livewire release, you can now pass your own key so you can have fine-grained control over clearing the cache:
#[Computed(cache: true, key: 'home-recent')]
public function recent(): Collection
{
return Article::active()
->latest()
->limit(6)
->get();
}
With this in place, you can now clear using the key like this:
Cache::forget('home-recent');
Computed properties, in tandem with caching, can indeed be extremely powerful! Adding keys to them enhances their potential significantly. It provides greater flexibility in controlling the cache.
For more information about this view the Livewire docs.
The post Leveraging Component Caching with Computed Properties in Laravel Livewire 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/component-caching-livewire
While there are many ways to monetize your website, there’s one strategy that stands out for its potential and simplicity: the paywall. We’re excited to tell you that this feature is now available on all WordPress.com sites.
Let’s explore why and how to use the new Paywall Block.
A paywall allows you to restrict certain pieces of content on your site or newsletter, requiring your readers to subscribe in order to access your work.
Generally, you’ll insert a paywall partway through a post, allowing all visitors to see a portion of the content, but then incentivizing them to subscribe in order to read the rest of it.
If you’re wondering whether this strategy is worth considering, here are the three key benefits:
You can add the Paywall Block anywhere in your posts or pages:
You can also add the Paywall Block to previously published material.
Whether you already have a well-established site or you’re starting from scratch, at WordPress.com you have all the tools you need to start a newsletter. With the Subscribe Block and Newsletter Patterns at your disposal, you can get a publication up and running in no time. With the new Paywall Block, we’ve added another piece to your newsletter toolbox.
WordPress.com is ever-evolving, and we’re always refining the design, experience, and offerings for writers, creators, and publishers like you. We’re all ears for your ideas to make it even easier for more people to publish and earn from their work.
Try out the Paywall Block and let us know what you think in the comments. We’re always listening to your feedback.
Test drive the Paywall BlockRead more https://wordpress.com/blog/2023/10/10/paywall-block/
The Laravel team released the Livewire + Volt functional stack for Breeze. This increases the Breeze offering to six stack variations, offering a tremendous amount of freedom to stacks that are emerging in the Laravel ecosystem:
If you want to install the Breeze + Volt functional API while creating a new Laravel project, all in one go, you can run the following:
laravel new --pest --breeze --git --dark \
--stack=livewire-functional \
breeze-functional-demo
Note: at the time of writing, the installer doesn't support
livewire-functional
unless you require
dev-master
. Likely, you can wait for the installer to
get a release, or you can run
# Normal update once the release is created
composer global update laravel/installer -W
# For the impatient
composer global require laravel/installer:dev-master -W
If you prefer to install after-the-fact, you can run the following:
laravel new example-project
cd example-project
composer require laravel/breeze
php artisan breeze:install
Then you can follow the prompts to select the stack, include dark mode support, and pick the test suite (Pest or PHPUnit):
If you'd like to get started with Laravel Volt, Jason Beggs wrote a tutorial on Laravel News to Learn Livewire 3, Volt, and Folio by building a podcast player. Also, check out the Volt Livewire documentation for more details.
The post Laravel Breeze with Volt Functional API 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-breeze-with-volt-functional-api