PHP code example of gaaarfild / laravel-title

1. Go to this page and download the library: Download gaaarfild/laravel-title library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gaaarfild / laravel-title example snippets

 PHP
'providers' => [
    // ...
    Garf\LaravelTitle\LaravelTitleServiceProvider::class,
]
 PHP
'aliases' => [
    // ...
  'Title' => Garf\LaravelTitle\TitleFacade::class,
]
 bash
php artisan vendor:publish --provider="Garf\LaravelTitle\LaravelTitleServiceProvider"
 php
Title::append('Title segment');
 PHP
Title::prepend('Title segment');
 php
Title::render([$delimiter = null, $no_additions = false]);
 php
Title::renderr([$delimiter = null, $no_additions = false]);
 PHP
Title::has();
 PHP
Title::clear();
 PHP
Title::get();
 PHP
Title::toJson();