PHP code example of litermi / raw-query
1. Go to this page and download the library: Download litermi/raw-query library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
litermi / raw-query example snippets
'providers' => [
// ...
Litermi\RawQuery\Providers\ServiceProvider::class,
],
'aliases' => [
'RawQuery' => Litermi\RawQuery\Facades\RawQuery::class
]
use Litermi\RawQuery\Facades\RawQuery;
$product = RawQuery::to('mysql')->getRow("select * from products where id_product=".$idProduct);
sh
php artisan vendor:publish --provider="Litermi\RawQuery\Providers\ServiceProvider"