Skip to main content
Version: Legacy

HTTP Statuses

Stable unknown

View on GitHub

tip

This package contains a translation of the names of all common HTTP code statuses and is linked to its numerical value.

So, you can easily localize the translation of them too!

Installation​

note

The compatibility table can be viewed here.

To install, run the console command:

composer require --dev laravel-lang/http-statuses:^3.13.2

Usage​

Now you can update existing localizations using the lang:update console command:

php artisan lang:update

We also recommend adding the call code to the post-update-cmd section of the scripts block in the composer.json file:

{
"scripts": {
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan lang:update"
]
}
}

This allows localization files to be automatically updated after dependency updates, rather than manually running the php artisan lang:update console command.

Compatibility​

LaravelPHPPublisherPackageStatus
10, 11, 12, 138.1, 8.2, 8.3, 8.4, 8.515, 16^3.5supported
8, 9, 108.1, 8.214^3.0not supported
7, 8, 98.0, 8.113^2.0not supported
7, 87.3, 7.4, 8.0, 8.110^1.0not supported