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
To Whom It May Concern, | |
I am writing to inform you that I have been experiencing severe headaches and joint pain since this morning. Despite having taken general medication from the first aid kit, my condition has not improved. | |
Therefore, I kindly request to be granted leave for today to rest and recover. | |
Sincerely, | |
Sohag Hasan | |
Tech Lead | |
MobyPay |
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 | |
use Illuminate\Http\Request; | |
use Illuminate\Foundation\Application; | |
use Illuminate\Foundation\Configuration\Exceptions; | |
use Illuminate\Foundation\Configuration\Middleware; | |
return Application::configure( basePath: dirname( __DIR__ ) ) | |
->withRouting( | |
web: __DIR__ . '/../routes/web.php', |
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
Show hidden characters
{ | |
// miscellaneous | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"diffEditor.ignoreTrimWhitespace": false, | |
// window | |
"window.title": "🦙⚡🫡 – ${activeEditorShort}${separator}${rootName} – 🫡⚡🦙", | |
"window.clickThroughInactive": false, |
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
version: '3' | |
services: | |
laravel.test: | |
build: | |
context: ./vendor/laravel/sail/runtimes/8.2 | |
dockerfile: Dockerfile | |
args: | |
WWWGROUP: '${WWWGROUP}' | |
image: sail-8.2/app | |
extra_hosts: |
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
# testing env | |
.env.testing | |
# In memory sqlite db | |
DB_CONNECTION=sqlite | |
DB_DATABASE=:memory: # in memory sqlite db | |
# Look for some text | |
$this->assertSee('text'); |
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 | |
$file = fopen( 'file.csv', 'r' ); | |
$csv = []; | |
while ( ( $row = fgetcsv( $file ) ) !== FALSE ) { | |
$csv[] = array_map( function ( $value ) { | |
return preg_replace( | |
['/"/', "/\r?\n/", '/[\x00-\x1F\x80-\xFF]/'], | |
['""', '<br>', ''], | |
$value |
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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Console\GeneratorCommand; | |
class MakeServiceCommand extends GeneratorCommand { | |
/** | |
* The name and signature of the console command. |
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\Traits; | |
use Illuminate\Support\Str; | |
use Illuminate\Database\Eloquent\Model; | |
trait HasUuid { | |
/** | |
* Get the value indicating whether the IDs are incrementing. |
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
// app/Services/FileService.php | |
<?php | |
namespace App\Services; | |
use Illuminate\Http\File; | |
use Illuminate\Support\Facades\Storage; | |
class FileService { | |
/** |
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
# Change Default php version for cli | |
sudo update-alternatives --config php | |
# Update composer to V2 | |
sudo composer self-update --2 | |
# Update composer to V1 | |
sudo composer self-update --1 |
NewerOlder