laravel-splade
laravel-splade copied to clipboard
SEO::title(...) missing after refresh / on inital pageload
- Laravel Version: 10.13.5
- PHP Version: 8.2.7
- Splade JS Version (npm): 1.4.15
- Splade PHP Version (composer): 1.4.15
Description:
SEO::title(...)
's are working great when navigating through our Splade application using <Link
's, but they dissapear after a page refresh and on the inital pageload.
Steps To Reproduce:
In my controllers I use
<?php
namespace App\Http\Controllers;
// ...
use ProtoneMedia\Splade\Facades\SEO;
class TestController extends Controller
{
public function index()
{
SEO::title(__('A fancy title'));
return view('index');
}
When I navigate to this page using the menu the title is there, when I refresh it is gone.