Laravel 11.28 Adds a Composer Dev Command

Laravel 11.28 Released This week, the Laravel team released v11.28, with a composer run dev command, Tailwind default config, a "CollectedBy" attribute to define a custom Collection class for a model, interactive encrypt/decrypt commands, and more. Add Tailwind and composer run dev Command Taylor Otwell updated the laravel/laravel application repo with a composer run dev command for all new applications. In the same pull request, every new Laravel application has a tailwind.config.js. Having a Tailwind config lets you start using it immediately without installing any starter kit. This is great news for anyone who wants to tinker with Tailwind without any additional setup. See Pull Request #6463 for details. Add CollectedBy Attribute Andreas Alsterholm contributed a CollectedBy attribute for specifying a custom collection class for a model: With this attribute added, one would only have to add the attribute rather than ove

Laravel 11.28 Adds a Composer Dev Command


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM

Laravel 11.28 Adds a Composer Dev Command

Laravel 11.28 Released

This week, the Laravel team released v11.28, with a composer run dev command, Tailwind default config, a "CollectedBy" attribute to define a custom Collection class for a model, interactive encrypt/decrypt commands, and more.

Add Tailwind and composer run dev Command

Taylor Otwell updated the laravel/laravel application repo with a composer run dev command for all new applications. In the same pull request, every new Laravel application has a tailwind.config.js. Having a Tailwind config lets you start using it immediately without installing any starter kit. This is great news for anyone who wants to tinker with Tailwind without any additional setup.

See Pull Request #6463 for details.

Add CollectedBy Attribute

Andreas Alsterholm contributed a CollectedBy attribute for specifying a custom collection class for a model:

With this attribute added, one would only have to add the attribute rather than override the newCollection() method on the Model class.

Here's an example from the pull request:

use Illuminate\Database\Eloquent\Attributes\CollectedBy;

#[CollectedBy(PostCollection::class)]
class Post
{
    // ...
}

Interactive env:encrypt and env:decrypt Commands

Harm Hermsen contributed interactive support for the env:encrypt and env:decrypt commands. The encrypt command prompts the user to either generate a random key or enter an existing one to use for encryption. The decrypt command allows you to paste in the key using a prompt and password field.

env:encrypt

env:decrypt

Add defaultLocale() and defaultCurrency() Helpers to the Number Facade

Ryan Holton contributed two new methods to the Number facade for getting whatever the default locale and currency values are:

Number::defaultLocale(); // returns default locale
Number::defaultCurrency(); // returns default currency

Release notes

You can see the complete list of new features and updates below and the diff between 11.27.0 and 11.28.0 on GitHub. The following release notes are directly from the changelog:

v11.28.0


The post Laravel 11.28 Adds a Composer Dev Command appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow

Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com
Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com
Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com