This file contains hidden or 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 | |
| // Set timezone (you can adjust this to your timezone) | |
| date_default_timezone_set('UTC'); | |
| // Get current date | |
| $currentDate = new DateTime(); | |
| // Calculate end date (6 months from now) | |
| $endDate = clone $currentDate; | |
| $endDate->modify('+6 months'); |
This file contains hidden or 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
| // you need to create the module first by running | |
| // go mod init <yourpackage> | |
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "errors" | |
| "log" | |
| "net/http" |
This file contains hidden or 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 | |
| use App\Domain\User\User; | |
| use function Tests\actingAs; | |
| use App\Domain\Product\Product; | |
| use App\TestFactory\UserFactory; | |
| use App\Domain\Merchant\Merchant; | |
| use Illuminate\Http\UploadedFile; | |
| use App\TestFactory\MerchantFactory; |
This file contains hidden or 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
| @extends('layouts.app') | |
| @section('content') | |
| <div class="max-w-4xl mx-auto py-6"> | |
| <div class="bg-white shadow overflow-hidden sm:rounded-lg"> | |
| <div class="px-4 py-5 border-b border-gray-200 sm:px-6"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900"> | |
| Applicant Information | |
| </h3> | |
| <p class="mt-1 max-w-2xl text-sm leading-5 text-gray-500"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="{{ app()->getLocale() }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!-- CSRF Token --> | |
| <meta name="csrf-token" content="{{ csrf_token() }}"> | |
| <title>{{ config('app.name', 'Laravel') }}</title> |
This file contains hidden or 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
| { | |
| "name": "laravel/laravel", | |
| "type": "project", | |
| "description": "The Laravel Framework.", | |
| "keywords": [ | |
| "framework", | |
| "laravel" | |
| ], | |
| "license": "MIT", | |
| "require": { |
This file contains hidden or 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 | |
| public function store(Request $request) | |
| { | |
| try { | |
| $watermark = storage_path('app'.DIRECTORY_SEPARATOR.'watermark.png'); | |
| $thumbnailName = 'thumb_'.sha1(date('Y-m-d H:i:s').uniqid()).'.png'; | |
| $originName = 'img_'.sha1(date('Y-m-d H:i:s').uniqid()).'.png'; | |
| $thumbnailUrl = storage_path('app'.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'imagerepositories'.DIRECTORY_SEPARATOR.$thumbnailName); |
This file contains hidden or 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
| <html> | |
| <body> | |
| <form> | |
| IP Server | |
| <input type="text" id="ip" name="ip" maxlength="50" size="50"> | |
| Port Server | |
| <input type="text" id="port" name="port" maxlength="50" size="50"> | |
| <br/> |
This file contains hidden or 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 | |
| class SomeClass { | |
| public function dashboard(Request $request) | |
| { | |
| $user = $this->userSummary(); | |
| $merchant = $this->merchantSummary(); | |
This file contains hidden or 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 | |
| class SomeClass { | |
| public function dashboard(Request $request) | |
| { | |
| $userTotal = User::where('type', 'customer)->count(); | |
| $userToday = User::where('type', 'customer')->whereDate('created_at', date('Y-m-d))->count(); | |
| $userActive = User::where('type', 'customer)->where('is_active', true)->count(); | |
| $userSuspended = User::where('type', 'customer')->where('is_active', false)->count(); |
NewerOlder