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 | | 673 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 | | 974 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 | | 528 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 | | 5575 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 | | 15435 Viewer | Category : Laravel
READ MORE

    How to get last record from MySQL table in Codeigniter?

    How to get last record from MySQL table in Codeigniter?

    Open Post

    Laravel 5.2 - User ACL Roles and Permissions with Middleware using entrust from Scratch Tutorial

    Laravel 5.2 - User ACL Roles and Permissions with Middleware using entrust from Scratch Tutorial

    Open Post

    Laravel 5 generate sitemap using roumen/sitemap package Example

    Laravel 5 generate sitemap using roumen/sitemap package Example

    Open Post

    Jquery select2 ajax autocomplete example with demo in PHP

    Jquery select2 ajax autocomplete example with demo in PHP

    Open Post

    Laravel 5.3 Image Upload with Validation example

    Laravel 5.3 Image Upload with Validation example

    Open Post

    Laravel 5.3 - Create Bootstrap Contact US Form using Form Request

    Laravel 5.3 - Create Bootstrap Contact US Form using Form Request

    Open Post