RSS

Category Archives: PHP

Video

Laravel 5 Audits and Logs

 
Leave a comment

Posted by on November 18, 2017 in Laravel, PHP

 

Tags:

Video

Laravel 5.5 Jwt Authentication

 
Leave a comment

Posted by on November 14, 2017 in Laravel, PHP

 

Tags: ,

Laravel Load Custom Error Views

This piece of code shows how to load different error views for each exceptions occurred, The display can be controlled depending on the context.

public function render($request, Exception $e)
{
if ($e instanceof HttpException) {
$statusCode = $e->getStatusCode();

if (view()->exists('errors.'.$statusCode)) {
return response(view('errors.'.$statusCode, [
'msg' => $e->getMessage(),
'code' => $statusCode
]), $statusCode);
}
}

return parent::render($request, $e);
}
 
Leave a comment

Posted by on October 25, 2017 in Laravel, PHP

 

Tags:

Link

http://www.looklinux.com/easy-steps-to-upgrade-php-5-3-to-php-5-6-on-centos-6-x-and-rhel-6-x/

 
Leave a comment

Posted by on May 20, 2017 in CentOS, PHP