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\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; |
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
//TODO- this code block can be replace in 'composeParties' method.but do it later |
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\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; |
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\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; |
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\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; |
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\Support\Facades\Route; | |
/* | |
|-------------------------------------------------------------------------- | |
| API Routes | |
|-------------------------------------------------------------------------- | |
| |
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
#!/bin/bash | |
project=/var/www/travel_list | |
swapfile=/swapfile | |
update() { | |
apt update | |
apt autoremove -yqq | |
apt autoclean | |
} | |
swap() { |