use varable on all site pages laravel
php artisan make:middleware SomeMiddleware
use varable on all site pages laravel
php artisan make:middleware SomeMiddleware
use varable on all site pages laravel
# app/Providers/AppServiceProvider.php
public function boot()
{
// add this
view()->share('someKey', 'This is shared data');
}
use varable on all site pages laravel
{{Session::get('website_name', 'Value Goes Here')}}
use varable on all site pages laravel
Config::get('app.name')
use varable on all site pages laravel
public function handle($request, Closure $next)
{
if (!Session::has('website_name')) {
// some logic
Session::put('website_name', 'YOUR VALUE');
}
return $next($request);
}
use varable on all site pages laravel
View::composer('*', function($view)
{
$view->with('website_name', 'My website');
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us