1. Go to this page and download the library: Download aon2003/laravel-page-titles 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/ */
function index() {
$page_props = ['Alex'];
return view('{page}', compact('page_props'));
}
return [
/*
|--------------------------------------------------------------------------
| Translation File Name
|--------------------------------------------------------------------------
|
| Used to find the page titles translations.
| If you change the translation file name, you MUST change this variable, too!
|
*/
'translation_file_name' => 'page-titles',
];