Back

How to get application name on a Blade template ?


Good morning,

I'm new with Laravel. I want to show my application name on some Blade templates. I've defined the name on config/app.php file :

'name' => 'My application name',

Thanks in advance.

astroanu replied 7 months ago Solution
{{ config('app.name') }}
Andy Agbaraku replied 2 weeks ago

Make the app name changes in your .env file.

Then use {{ config('app.name') }} to display on your dot blade files.


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us