Category: PHP

Setting up a Virtual Domain in XAMPP and adding SSL support to it.

In this article we will see how we can add a separate virtual domain in XAMPP. Objective : To be able to access php code via XAMPP that is in a directory other than htdocs which is the default directory under XAMPP to store applications. ┬áTo have a different domain name on your localhost to […]

Changing Log Severity Level from debug to error in Laravel 4

Laravel comes with a default Logging library which is built on the top of Monolog Library. Monolog recognizes the following severity levels – from least severe to most severe: debug, info, notice, warning, error, critical, alert, emergency. The logging handler for your application is registered in the app/start/global.php. By default the logger is configured to […]

How to get value of URL parameters into Controller (Laravel)

1. If you have your parameter attached to the URL after the question mark like Your route for this controller will look something like thisYou can get the value of this parameter in your controller function by2. If you have your parameter attached to the URL without question mark like […]