PHPStorm launcher as terminal command on homestead

PHPStorm is a great IDE for PHP.This IDE support few major framework like Symfony, Drupal, WordPress, Zend Framework, Laravel, Magento, Joomla!, CakePHP, Yii etc.It provides the best code completion, refactorings, on-the-fly error prevention, and more.Today we know how can we access PHPStorm from our local ubuntu machine using a terminal command.First we will see how 

Continue Reading…

oauth2 custom error message

oauth2 with laravel

oauth2 is a service that is mostly used for api authentication.Let know a short note about oauth2.OAuth 2 is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service, such as Facebook, GitHub, and DigitalOcean.Like we want to build an api based application,that time we have a think 

Continue Reading…

PHP7 Null coalesce operator

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator (),scalar type declarations,return type declaration,null coalesce operator any many others new features.So then first see what is this operator.(??) is null coalesce operator.In previous version till 5.6 we was see a operator that is called ternary operator(?).Null coalesce operator 

Continue Reading…

PHP7 Return type declarations

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator (),scalar type declarations any many others new features.Return type declaration a great features what i think.You can specify a return type for a function.You can define both scalar type and return type declaration in a same function.Let see an 

Continue Reading…

PHP7 Scalar type declarations

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator (),scalar type declarations any many others new features.Here we know how to use scalar type declaration in PHP7.There are two flavor for scalar type declaration such as coercive (default) and strict. strings integers floating-point booleans Those four types of 

Continue Reading…

PHP7 Spaceship Operator

PHP7 Improved performance up to twice as fast as PHP 5.6 ,Consistent 64-bit support,Combined comparison Operator () any many others new features.In here we know how to use php7 spaceship operator().Let see how to use it. PHP7 Spaceship Operator() This operator will offer combined comparison in that it will : Return 0 if values on 

Continue Reading…

PHP showing as text apache

After install php and apache in a machine,sometimes we see that php shows as plain text in web browser.Suppose we echo as text like “echo ‘hello world’;”.When we access this file on web browser we see that it’s not print hello world,it shows the full line as a plain text.It happens for a php module 

Continue Reading…

install mcrypt

mcrypt is an php extension.If you want to run the most popular and latest framework laravel version 5.0,you need to install and enable it in your machine.In this blog i wrote the step how to install mcrypt and enable it in a linux machine.Just run some commands on your terminal and it will install and 

Continue Reading…