This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"success": true, | |
"message": "Fetched user according to given status", | |
"data": [ | |
{ | |
"id": 81, | |
"full_name": "AGM Khair Sabbir", | |
"email": "[email protected]", | |
"phone": "01733333333", | |
"gender": "Male", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ekpay old code | |
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => 'https://dev.ekpay.gov.bd/syndicate/api/fetch-MDMbillers', | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Container\Container; | |
use Illuminate\Contracts\Container\BindingResolutionException; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
use Illuminate\Pagination\Paginator; | |
use Illuminate\Support\Collection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @sql = NULL; | |
SET SESSION group_concat_max_len = 1000000; | |
SELECT | |
GROUP_CONCAT(DISTINCT | |
CONCAT( | |
'max(CASE WHEN ca.date = ''', | |
date_format(date, '%Y-%m-%d'), | |
''' THEN coalesce(p.status, ''P'') END) AS `', | |
date_format(date, '%Y-%m-%d'), '`' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function expenseList() | |
{ | |
$user_info = Expenses::get()->groupBy(function($val) { | |
return Carbon::parse($val->current_month)->format('F'); | |
}); | |
return view('expense-list', compact('user_info')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Xdebug in PHP | |
Now it’s time to install Xdebug in PHP. There are a few options through which you can install Xdebug. | |
Windows: | |
For windows users, Xdebug is providing a wizard tool through which you can download the related .dll file. For this, first, create a PHP file in folder, and add the following line of code: | |
<?php | |
phpinfo(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (config('app.env') == 'production') { | |
$width = $thumbnail_values[1]->value; | |
$height = $thumbnail_values[0]->value; | |
$destinationPath = 'images/media/' . $directory . '/'; | |
$thumbnailImage = Image::make($request->file('file'))->resize($width, $height)->stream(); | |
$namethumbnail = $destinationPath . 'thumbnail' . time() . $filename; | |
Storage::disk('s3')->put($destinationPath . 'thumbnail' . time() . $filename, $thumbnailImage->__toString()); | |
$Path = 'images/media/' . $directory . '/' . 'thumbnail' . time() . $filename; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "success", | |
"code": 200, | |
"orders": { | |
"orders_data": [ | |
{ | |
"orders_id": 92, | |
"orders_numbers": "00000092", | |
"total_tax": "188.00", | |
"customers_id": 60, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @var PaymentInterface | |
*/ | |
public static $provider; | |
/** | |
* @var | |
*/ | |
private static $instance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"categories_id": 2, | |
"category_name": "Women", | |
"category_description": null, | |
"categories_image": 36, | |
"categories_icon": 584, | |
"size_chart": "images/media/2022/03/HsD6r21410.webp", | |
"parent_id": 0, | |
"sort_order": null, |