HTTP Statuses | Laravel Lang

Laravel Lang Help

HTTP Statuses

Installation

To install, run the console command:

composer require --dev laravel-lang/http-statuses

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

Laravel

PHP

Publisher

Package

Status

10, 11

8.1, 8.2, 8.3

15, 16

^3.5

supported

8, 9, 10

8.1, 8.2

14

^3.0

not supported

7, 8, 9

8.0, 8.1

13

^2.0

not supported

7, 8

7.3, 7.4, 8.0, 8.1

10

^1.0

not supported

Last modified: 16 July 2024