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, Bluesky, and Blogger.
Are you looking for your next Laravel adventure? Here is who is hiring, and many of these jobs allow remote work. Check them out.
Senior Software Engineer
Insight LPR - Remote / USA
Senior Laravel Developer - Ambulance Corporate
Applications
eHealth NSW - Sydney, Australia
Software Developer
(Laravel/Vue.js/Tailwind)
Patient Prism - Remote
SEO and Programmatic SEO Developer
NearU - Remote
Laravel Developer
Affiliate.com - Remote
Laravel and Vue Developer
GovExec - Remote / USA
Hardware Product Owner
Insight LPR - Remote USA
Senior Laravel + Vue.js App
Developer
SpinupWP - Remote, Canada Only
Senior PHP Laravel Developer
iVisa - Remote
Full Stack Developer
Landscape - Remote (UK & Europe)
Laravel Jedi
Creative Force - Remote (Asia Pacific / Europe)
Laravel Developer on Contract
Click Go Track Inc - Remote
Mid/Senior Full-Stack Engineer
yhangry (YC W22) - London
Senior Laravel Engineer (Shaping
Engineer)
Leasecake - Remote/USA ONLY
Software Engineer (Multiple)
Canyon GBS - Remote / USA
Senior Fullstack Laravel Developer
Voltimum SA - Remote / EU
Senior Software Engineer (Laravel /
Vue.js)
PactFi - Remote / USA
Full-stack Developer
Paper Leaf - Canada Only / Remote
Mid-Level (Laravel) Support
Engineer
Atarim - Any
If you want to hire Laravel developers, visit LaraJobs and see your job listing here next month.
The post Laravel Jobs - December 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-jobs-december-2024
HydePHP is a static site generator that helps you make websites, blogs, and documentation pages with tools you already know and love. It is a Laravel-powered console application you can use to create blog posts and HTML pages using your choice of Markdown or Blade:
---
title: My New Post
description: A short description used in previews and SEO
category: blog
author: Mr. Hyde
date: 2022-05-09 18:38
---
## Write Your Markdown Here
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Autem aliquid alias explicabo consequatur similique,
animi distinctio earum ducimus minus, magnam.
Using Hyde's console, you can quickly serve your development project and create pages/posts interactively from the console:
I recommend digging into the hydephp.com project for a complete example of using this project, which you can find on Github. The official documentation is the best place to get started to learn everything HydePHP has to offer. The source code the HydePHP is also open-source and available on GitHub at hydephp/hyde.
The post HydePHP is a Laravel-powered Static Site Generator 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/hydephp-is-a-laravel-powered-static-site-generator
String manipulation in Laravel often involves replacing multiple placeholders with dynamic values. Laravel provides a powerful solution through the Str::replaceArray() method, making complex string replacements straightforward and efficient. Let's explore how this feature can enhance your string handling capabilities.
The Str::replaceArray() method, available in Laravel's string manipulation toolkit, enables sequential replacement of placeholders within a string using an array of values. This proves invaluable for dynamic text generation and content templating.
use Illuminate\Support\Str;
$message = 'Welcome to ?, your account number is ?';
$result = Str::replaceArray('?', ['Laravel', 'ACC-123'], $message);
echo $result; // Output: Welcome to Laravel, your account number is ACC-123
Let's explore a practical scenario where we're generating personalized order confirmations in an e-commerce application:
<?php
namespace App\Http\Controllers;
use App\Models\Order;
use Illuminate\Support\Str;
use App\Notifications\OrderConfirmation;
class OrderController extends Controller
{
public function sendConfirmation(Order $order)
{
$template = 'Dear ?, your order #? has been confirmed. Your ? items will be delivered to ? within ? business days.';
$replacements = [
$order->customer->name,
$order->reference,
$order->items->count(),
$order->shipping_address,
$order->delivery_estimate,
];
$message = Str::replaceArray('?', $replacements, $template);
// Send confirmation notification
$order->customer->notify(new OrderConfirmation($message));
return response()->json([
'status' => 'success',
'message' => 'Order confirmation sent'
]);
}
}
In this implementation, we use Str::replaceArray() to create personalized order confirmations by replacing placeholders with actual order details. This ensures each customer receives accurate and personalized communication about their order.
The post Mastering Dynamic String Manipulation with Laravel's Str::replaceArray() 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/str-replacearray
When working with substantial datasets in Laravel applications, sending all data at once can create performance bottlenecks and memory issues. Laravel offers an elegant solution through the streamJson method, enabling incremental JSON data streaming. This approach is ideal when you need to progressively deliver large datasets to the client in a JavaScript-friendly format.
The streamJson method, accessible via Laravel's response object, enables incremental JSON data streaming. This approach optimizes performance and memory efficiency when handling large datasets.
response()->streamJson(['data' => $yourDataset]);
Let's explore a practical example where we're managing a large inventory dataset with detailed product information and relationships.
Here's how we can implement this using streamJson:
<?php
namespace App\Http\Controllers;
use App\Models\Inventory;
class InventoryController extends Controller
{
public function list()
{
return response()->streamJson([
'inventory' => Inventory::with('supplier', 'variants')->cursor()->map(function ($item) {
return [
'id' => $item->id,
'sku' => $item->sku,
'quantity' => $item->quantity,
'supplier' => $item->supplier->name,
'variants' => $item->variants->pluck('name'),
];
}),
]);
}
}
In this example, we're using eager loading for supplier and variants relationships to prevent N+1 query problems. The cursor() method ensures efficient iteration over the inventory items, while map() handles the formatting of each record during streaming.
Here's what the streamed output looks like:
{
"inventory": [
{
"id": 1,
"sku": "INV-001",
"quantity": 150,
"supplier": "Global Supplies Inc",
"variants": ["red", "blue", "green"]
},
{
"id": 2,
"sku": "INV-002",
"quantity": 75,
"supplier": "Quality Goods Ltd",
"variants": ["small", "medium"]
},
// ... additional inventory items stream as they're processed
]
}
The streamJson method enables your application to transmit data progressively, allowing the browser to begin processing and displaying results before receiving the complete dataset.
Using streamJson provides an efficient way to handle large datasets, delivering a smoother user experience through faster initial loading and progressive UI updates. This becomes particularly valuable when working with datasets too large for single-load operations.
The post Efficient Large Dataset Handling in Laravel Using streamJson() 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/efficient-large-dataset-handling-in-laravel-using-streamjson
Having a well-designed, functional website helps you reach a broader audience, build credibility, and connect meaningfully with customers or followers. In today’s digital-first world, your website is often the first impression you make, and right now is the time to make it count.
Why now? Black Friday savings, of course!
Until December 2nd, save 25% on the first year of any new annual hosting plan from WordPress.com.
Save on HostingThere are many reasons a website is important. Let’s take a look at three that impact the relationship you can build with your audience:
We live in an “informed consumer” society and having a website allows you to share important details about your business or products. Your customers look for a website to help them form opinions, understand your offerings, and ultimately make a purchase decision. If you don’t have one, it can raise questions of legitimacy and cause your customers to look elsewhere for the products or services they require.
Your WordPress.com website gives you full control over how people experience your brand. A well-organized site not only sets the right tone but also makes it easy for visitors to find what they need, continuing to build trust and showing your commitment to a positive experience.
The internet never closes or sleeps. With a website, your audience has 24/7 access to everything you offer—any time, from anywhere.
Putting your audience first is essential to your success.
This is why our Black Friday sale is about so much more than the 25% savings you’ll receive on the first year of any new, annual hosting plan.
Sign Up and SaveChoosing WordPress.com as your website host means choosing a team committed to your success. Our self-help resources, AI Assistant, and Happiness Engineers are all focused on helping you be successful with your website.
Our managed WordPress hosting also offers unmetered visitors, unmatched speed, and unstoppable security for one low price. With WordPress.com, you always have what you need to get online (and stay online) so you can grow your audience.
And if you take advantage of our Black Friday sale before December 2nd, you get even more with your purchase:
WordPress is a powerful and flexible website building platform, and WordPress.com gives you that functionality alongside powerful, secure, and scalable managed hosting. Whether you want a simple blog, a complex eCommerce store, or anything in-between, WordPress.com is the right hosting platform for you.
Check out what’s possible on WordPress.com in our demo site showcase:
Ready to get started with WordPress.com? We thought you might be.
Click the button below to learn more about each of our plans, choose the right plan for you, and purchase your discounted hosting plan. Your 25% off discount will apply automatically at checkout.
Sign Up and SaveWhat if I change my mind, can I get a refund?
Absolutely. We offer a risk-free, 14-day money back guarantee on annual plans.
Can I use a domain I already own?
For sure. You can transfer or connect your domain and we can guide you on the steps as needed.
Can I migrate an existing site?
Absolutely. Whether your existing site is built with WordPress or another platform, we have guides available to walk you through the process. We also offer free migrations of WordPress sites. And yes, our Black Friday offer applies to site migrations too.
Is this offer available on renewals or upgrades?
No, this discount only applies to new annual plans. Current users can, however, use this offer if they’re adding a new plan or site.
How do renewals work?
Our Black Friday offer gives you a 25% discount off the first year of your hosting plan. Our annual plans automatically renew 30-days prior to your expiry date at the regular full price.
Sign up today to take advantage of powerful managed WordPress hosting from WordPress.com and save 25% on the annual plan of your choice.
This offer expires on December 2nd, 2024.
Read more https://wordpress.com/blog/2024/11/27/black-friday-2024/