title: How to resolve mcrypt error ' Use of undefined constant MCRYPT_RIJNDAEL_128' in php laravel framework?
body: <p>By running 'php artisan serve' on my phpstorm, i get this error '<code>ErrorException</code> in <code>EncryptionServiceProvider.php</code> line 16:
  Use of undefined constant <code>MCRYPT_RIJNDAEL_128</code> - assumed '<code>MCRYPT_RIJNDAEL_128</code>'' on browser.</p>
  
  <p>I've tried reinstalling mcrypt but it didn't work. Also i didn't find any solution to this problem.</p>
  
  <pre><code>php artisan serve
  PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /Users/optergy/safetybeat-dashboard-live/dashboard/config/app.php on line 83
  Laravel development server started on http://localhost:8000/
  </code></pre>
  
  <p>This error is blocking me to run the project properly.</p>