PHP code example of novicms / l4-metatags

1. Go to this page and download the library: Download novicms/l4-metatags 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/ */

    

novicms / l4-metatags example snippets



Setting::set('foo', 'bar');
Setting::get('foo', 'default value');
Setting::get('nested.element');
Setting::forget('foo');
$settings = Setting::all();


Setting::setExtraColumns(array(
	'user_id' => Auth::user()->id
));


Setting::setConstraint(function($query, $insert) {
	if ($insert) return;
	$query->where(/* ... */);
});


class MyStore extends anlutro\LaravelSettings\SettingStore {
	// ...
}
Setting::extend('mystore', function($app) {
	return $app->make('MyStore');
});