Meta

Runtime Meta Data

Meta data are runtime configuration information that are only available on current request. It similar to Laravel configuration repository but without the persistent information. This make it useful for adding information that is specific to the current request.

Basic Usage

A common usage of meta data is to define current page title:

<?php

use Orchestra\Support\Facades\Meta;

Meta::set('title', 'Welcome');
<h1>
	{{ Meta::get('title') }}
</h1>

📘

Meta is aliased by default under the default Orchestra Platform skeleton.

Using Helpers

<?php

set_meta('title', 'Welcome');
<h1>
  {{ get_meta('title') }}
</h1>

Using Blade Directives

@set_meta('title', 'Welcome')

<h1>
  @get_meta('title')
</h1>