码迷,mamicode.com
首页 > 其他好文 > 详细

Laravel Configuration

时间:2014-11-01 00:54:33      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   for   sp   div   on   log   

Introduction

All of the configuration files for the Laravel framework are stored in the app/config directory. Each option in every file is documented, so feel free to look through the files and get familiar with the options available to you.

Sometimes you may need to access configuration values at run-time. You may do so using the Config class:

Accessing A Configuration Value

Config::get(‘app.timezone‘);

You may also specify a default value to return if the configuration option does not exist:

 

Laravel Configuration

标签:blog   http   io   ar   for   sp   div   on   log   

原文地址:http://www.cnblogs.com/ghgyj/p/4066200.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!