Tag : Config



How to set config file value in Laravel 5?

Whenever you need to get configuration files value then you can set using config helper in Laravel 5. In my previous post i added how to get config file value in laravel 5. If you are working on Laravel 4 then you should use Config facade for get and set value of config file. Maybe sometimes we require to set application url from app.php file or database name from database.php file so you can set this way: <strong>Example:</strong> <pre class="prettyprint lang-php"> config()->set('app.url','http://localhost:8000'); OR Config::set('app.url','http://localhost:8001'); </pre>

By Hardik Savani | May 30, 2016 | | 3536 Viewer | Category : Laravel
READ MORE

How to get config file value in Laravel 5?

Whenever you need to get configuration files value then you can get using config helper in Laravel 5. If you are working on Laravel 4 then you should use Config facade for get and set value of config file. Maybe sometimes we require to get application url from app.php file or database name from database.php file so you can get this way: <strong>Example:</strong> <pre class="prettyprint lang-php"> config('app.url'); OR Config::get('app.url'); </pre>

By Hardik Savani | May 25, 2016 | | 2392 Viewer | Category : Laravel
READ MORE

How to set git config username and email?

When you first time create your git repo or clone project from git repo then you must have to set username and email. You can also set global username email and also you can set per repository username email. So, in this post in bellow command through you can set global git username and email. <strong>Global Set:</strong> <pre class="prettyprint lang-php"> git config --global user.name "Haresh Patel" git config --global user.email "itsolutionstuff@gmail.com" git config --list </pre> You can also set username and email per project repo using bellow command. First you have to go on your projec.....

By Hardik Savani | May 19, 2016 | | 918 Viewer | Category : Git
READ MORE

How to define Global Variables in Laravel 5?

Laravel framework is awesome framework in todays. Laravel provide sevaral good feature and that's why it is very popular framework in PHP. Basically if we are work on big website project or ERP level project we always need to define some global variable like site title, number of pagination, footer text etc as depend on our project. So, I am going to show you how to define and use global variable in Laravel 5. Laravel 5 provide very simple way to set Global Variables in our laravel application. It is very pretty simple and with good directory structure. First we have to create global.php file.....

By Hardik Savani | April 17, 2016 | | 14693 Viewer | Category : Laravel
READ MORE

Laravel 5 clear cache from route, view, config and all cache data from application

In this post i would like to share my experience and solution. when i was working on my laravel e commerce website with gitlab. I was fetching one issue suddenly my view cache with error during development. i did try lot to refresh and something other but i can't see any more change in my view, but at last I did resolve my problem using laravel command so, let's see i added several command for clear cache from view, route, confir etc. <strong class="example">Reoptimized class loader:</strong> <pre class="prettyprint lang-php">php artisan optimize</pre> <strong class="example">Clear Cache fac.....

By Hardik Savani | March 22, 2016 | | 73105 Viewer | Category : Laravel
READ MORE

    Codeigniter - Dynamic dependent dropdown using jquery ajax Example

    Codeigniter - Dynamic dependent dropdown using jquery ajax Example

    Open Post

    How to create custom facade in laravel 5.2?

    How to create custom facade in laravel 5.2?

    Open Post

    PHP - jquery datatables with mysql database example from scratch

    PHP - jquery datatables with mysql database example from scratch

    Open Post

    How to get gravatar image from email using Jquery?

    How to get gravatar image from email using Jquery?

    Open Post

    PHP - import excel file into mysql database tutorial

    PHP - import excel file into mysql database tutorial

    Open Post

    How to create ban/revoke user functionality in Laravel 5 example ?

    How to create ban/revoke user functionality in Laravel 5 example ?

    Open Post