Skip to content

Instantly share code, notes, and snippets.

Avatar

myathtut-zafir

View GitHub Profile
View PartyApiController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Traits\APIResponser;
use App\Http\Controllers\Controller;
use App\Http\Resources\ElectionRegionCollection;
use App\Http\Resources\PartyCollection;
use App\Models\AmyothaElectionRegion;
use App\Models\District;
View PartyApiController.php
//TODO- this code block can be replace in 'composeParties' method.but do it later
View ParliamentSeedApiController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Traits\APIResponser;
use App\Http\Controllers\Controller;
use App\Http\Resources\IncludedRepresentativeElectionRegion;
use App\Http\Resources\RepresentativeElectionRegionSeed;
use App\Models\Category;
use App\Models\Faq;
View ElectionRegionApiController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Traits\APIResponser;
use App\Http\Controllers\Controller;
use App\Http\Resources\ElectionRegionCollection;
use App\Models\AmyothaElectionRegion;
use App\Models\District;
use App\Models\PyiThuElectionRegion;
View ProductPriceApiController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Traits\APIResponser;
use App\Http\Resources\ProductPriceCollection;
use App\Http\Resources\ProductPriceMyanmarCollection;
use App\Models\ProductPrice;
use Carbon\Carbon;
View api.php
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
View lampp.sh
#!/bin/bash
project=/var/www/travel_list
swapfile=/swapfile
update() {
apt update
apt autoremove -yqq
apt autoclean
}
swap() {
You can’t perform that action at this time.