30 Dec 2022

cURL error 60: SSL certificate prblm: unable to get local issuer certificate

If you are on Windows using Xampp, I am stealing a better answer from here, would be helpful if Google shows you this question first.


  • Download and extract for cacert.pem here (a clean file format/data)
    • https://curl.haxx.se/docs/caextract.html

  • Put it in :
    • C:\xampp\php\extras\ssl\cacert.pem

  • Add this line to your php.ini
    • curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"

  • restart your webserver/Apache

 

If you are using Wamp: 

  • C:\wamp64\bin\php\php7.4.4\phpForApache.ini . - Edit here
  • Restarting PC worked for me. Thanks


14 Dec 2022

How to get a list of registered route paths in Laravel?

Laravel 6, 7 & 8

Put it inside routes/web.php 

Route::get('routes', function () { $routeCollection = Route::getRoutes(); echo "<table style='width:100%'>"; echo "<tr>"; echo "<td width='10%'><h4>HTTP Method</h4></td>"; echo "<td width='10%'><h4>Route</h4></td>"; echo "<td width='10%'><h4>Name</h4></td>"; echo "<td width='70%'><h4>Corresponding Action</h4></td>"; echo "</tr>"; foreach ($routeCollection as $value) { echo "<tr>"; echo "<td>" . $value->methods()[0] . "</td>"; echo "<td>" . $value->uri() . "</td>"; echo "<td>" . $value->getName() . "</td>"; echo "<td>" . $value->getActionName() . "</td>"; echo "</tr>"; } echo "</table>"; });