PHP code example of cirelramos / raw-query

1. Go to this page and download the library: Download cirelramos/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/ */

    

cirelramos / raw-query example snippets


'providers' => [
    // ...
    Cirelramos\RawQuery\Providers\ServiceProvider::class,
],



'aliases' => [
    'RawQuery' => Cirelramos\RawQuery\Facades\RawQuery::class
]



use Cirelramos\RawQuery\Facades\RawQuery;


$product = RawQuery::to('mysql')->getRow("select * from products where id_product=".$idProduct);

sh
php artisan vendor:publish --provider="Cirelramos\RawQuery\Providers\ServiceProvider"