Skip to content

Instantly share code, notes, and snippets.

View shanerbaner82's full-sized avatar
🎯
Focusing

Shane Rosenthal shanerbaner82

🎯
Focusing
View GitHub Profile
@props([
'leadingAddOn' => false,
])
<div class="flex rounded-md shadow-sm">
@if ($leadingAddOn)
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">
{{ $leadingAddOn }}
</span>
@endif
@props([
'leadingAddOn' => false,
])
<div class="flex rounded-md shadow-sm">
@if ($leadingAddOn)
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">
{{ $leadingAddOn }}
</span>
@endif
@props([
'label',
'for',
'error' => false,
'helpText' => false,
'inline' => false,
'paddingless' => false,
'borderless' => false,
])
---
- name: Setup Laravel application and push to GitHub
hosts: localhost
gather_facts: false
vars:
ansible_python_interpreter: /usr/bin/python3
tasks:
# - name: Run composer update
# command: composer update
# args:
---
- hosts: 127.0.0.1
vars:
laravel_app_name: my-laravel-app
github_repo_name: my-laravel-repo
github_username: your-github-username
github_password: your-github-password
tasks:
- name: Install Laravel installer

Use AWS S3 for Laravel Storage | 2023 Version

I know, I know! I was there too, trust me. The AWS dashboard can be intimidating, confusing, seemingly overkill for what you are trying to do, and compared to other popular resources out there it is easy to completely dismiss AWS altogether and roll with something else.

However, there is a reason that some of the BIGGEST companies in the world use AWS for their web services. Companies like Twitch, LinkedIn, Facebook and even all of those chill time movies are streamed from Netflix through AWS. It is for good reason.

I cannot teach the entirety of AWS in a single article, but I can demystify the dashboard just a bit by showing you how to navigate through and ultimately implement S3 buckets in your Laravel apps.

## Bucket Policy
```
{
"Version": "2012-10-17",
"Id": "Policy1692807538499",
"Statement": [
{
"Sid": "Stmt1692807537432",
"Effect": "Allow",
"Principal": "*",
recipejs pa native:build mac
Build NativePHP app…
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
> NativePHP@1.0.0 build:mac
> cross-env npm run build:mac-arm && cross-env npm run build:mac-x86
> NativePHP@1.0.0 build:mac-arm
> cross-env node php.js --arm64 && cross-env npm run build && cross-env electron-builder -p never --mac --config --arm64
Binary Source: /Users/sdr/Code/justdailytodos/vendor/nativephp/php-bin/bin/mac/arm64
Binary Filename: php
Copying PHP file(s) from /Users/sdr/Code/justdailytodos/vendor/nativephp/php-bin/bin/mac/arm64 to /Users/sdr/Code/justdailytodos/vendor/nativephp/electron/resources/js/resources/php
sdr@shanes-mbp [19:00:42] [~/Code/justdailytodos]
-> % pa native:install
Publishing NativePHP Service Provider...
Would you like to install the NativePHP NPM dependencies? (yes/no) [yes]:
>
Fetching latest dependencies…
> NativePHP@1.0.0 postinstall