Steps to upload files to S3 using Laravel
install s3 pkg:
composer require league/flysystem-aws-s3-v3
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Support\Carbon; | |
| use Illuminate\Support\Facades\Cache; | |
| class IPThrottleMiddleware | |
| { |
| <div id="new-card-box"> | |
| <!-- noon payment form that will hidden --> | |
| <div class="new-card-selection-container" id="new-card-selection-container"> | |
| <div class="flex align-center space-between"> | |
| <div class="new-card-control-box" | |
| id="new-card-payment-selection-frame"> | |
| </div> | |
| </div> | |
| </div> |
| class ProfileController extends Controller | |
| { | |
| /** | |
| * Get user info | |
| * | |
| * @return UserResource | |
| */ | |
| public function __invoke() | |
| { | |
| return json_response(data: new UserResource(user())); |
| https://github.com/heroku/heroku-buildpack-php | |
| https://github.com/heroku/heroku-buildpack-nodejs |
| <?php | |
| namespace App\Services; | |
| class DateConverter | |
| { | |
| public static $Day; | |
| public static $Month; | |
| public static $Year; |
| <?php | |
| namespace App\Helpers; | |
| class Status | |
| { | |
| public const HTTP_CONTINUE = 100; | |
| public const HTTP_SWITCHING_PROTOCOLS = 101; | |
| public const HTTP_PROCESSING = 102; | |
| public const HTTP_EARLY_HINTS = 103; |
| // export PATH="$HOME/.composer/vendor/bin:$PATH" | |
| alias cud="composer dump-autoload" | |
| alias a="php artisan" | |
| alias ac="php artisan make:controller" | |
| alias am="php artisan make:model" | |
| alias afs="php artisan migrate:fresh --seed" | |
| alias ao="php artisan optimize:clear" | |
| alias acc="php artisan config:cache" | |
| alias af="php artisan migrate:fresh" |