Download the PHP package kminek/laravel-title without Composer
On this page you can find all versions of the php package kminek/laravel-title. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kminek/laravel-title
More information about kminek/laravel-title
Files in kminek/laravel-title
Package laravel-title
Short Description Probably the easiest way to add dynamic HTML title to Laravel app
License MIT
Homepage https://github.com/kminek/laravel-title
Informations about the package laravel-title
Laravel Title
Probably the easiest way to add dynamic HTML title to Laravel app
Installation
Run the following command from your terminal:
or add this to require
section in your composer.json
file:
then run composer update
Version compatibility
Laravel | laravel-title |
---|---|
11.x / 12.x | 1.x |
Usage
Modify your layout view (for example resources/views/layouts/app.blade.php
):
Modify your controller action view (for example resources/views/auth/register.blade.php
):
Advanced usage
Change default separator (|
):
Change default text (config('app.name')
):
Set a description which is displayed when no title is set inside controller action view:
You are not required to use @title()
Blade directive, you can call
library directly which opens more possibilities:
You can have multiple title "stacks" under different keys. Default stack is using "default" as a key, but you are free to create new ones:
and later in Blade view:
All versions of laravel-title with dependencies
illuminate/container Version 11.*|12.*
illuminate/support Version 11.*|12.*