How to Get Config File Value in Laravel?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Today now in this post i will show you How to Get Config File Value in Laravel? Some times we need to get configuration files value then we can get by using config helper in Laravel. If we are working on Laravel application then we should use the Config facade for get and also set the value of config file. Maybe sometimes we need to get application url from the app.php file or database name from the database.php file so we can get on this way:

Example:
config('app.url');
OR
Config::get('app.url');

Read Also : Laravel 8 Mobile Number Verification Tutorial

Thanks for read. I hope it help you. For more you can follow us on facebook

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →