Skip to content

Instantly share code, notes, and snippets.

@i5on9i
Last active August 25, 2018 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i5on9i/c2699beb721b858e5d4f9bc98c1f551b to your computer and use it in GitHub Desktop.
Save i5on9i/c2699beb721b858e5d4f9bc98c1f551b to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Controllers\App;
use App\Http\Controllers\Controller;
use App\Lib\CorpValues;
use Illuminate\Support\Facades\View;
class BaseViewController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
View::share('siteName', CorpValues::SITE_NAME);
View::share('corpName', CorpValues::CORP1_NAME);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment