-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
34,860 additions
and
29,885 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.git | ||
.env |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
APP_NAME="Grafite Scaffold" | ||
APP_ENV=local | ||
APP_KEY=base64:tUx23rtiQsNZtV4aRH38ofndb8lX05LWZaSXUYe+F/4= | ||
APP_DEBUG=true | ||
APP_URL="https://scaffold.local.test/" | ||
|
||
LOG_CHANNEL=stack | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=mysql | ||
DB_PORT=3306 | ||
DB_DATABASE=scaffold | ||
DB_USERNAME=sail | ||
DB_PASSWORD=password | ||
|
||
BROADCAST_DRIVER=pusher | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
REDIS_CLIENT=phpredis | ||
REDIS_HOST=redis | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=127.0.0.1 | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=Scaffold | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
[email protected] | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
|
||
PUSHER_APP_ID=1160273 | ||
PUSHER_APP_KEY=beda029944f4b5d0809b | ||
PUSHER_APP_SECRET=89286a9097669f0c48ff | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" | ||
|
||
PLAN_MONTHLY=plan_FgRNFn5SPrDG6g | ||
PLAN_YEARLY=plan_Gb9YKx6eWjjApR | ||
|
||
STRIPE_KEY=pk_test_zVmnUpEu5wX5bi3e9HETz4Zn | ||
STRIPE_SECRET=sk_test_k446eRvPjUZHNUIELSMyNS3t | ||
CASHIER_PAYMENT_NOTIFICATION=Laravel\Cashier\Notifications\ConfirmPayment | ||
|
||
HONEYPOT_NAME=my_email | ||
SANCTUM_STATEFUL_DOMAINS="scaffold.local.test,localhost,127.0.0.1,127.0.0.1:8000,::1" | ||
SESSION_DOMAIN="scaffold.local.test" | ||
|
||
MISSION_CONTROL_URL='https://missioncontrol.test' | ||
MISSION_CONTROL_USER_TOKEN="6|SDYLxDrSdt8S16gTRuumdbkE5Isle43rlkoPo6UB" | ||
MISSION_CONTROL_PROJECT_KEY="37deb93ec12fe69e5cb0c55dc4d5f544" | ||
MISSION_CONTROL_PROJECT_UUID="fee11c7f-316e-4288-9cf3-3167b43c80fc" | ||
|
||
REGISTRATION=true | ||
|
||
APP_PORT=48080 | ||
FORWARD_DB_PORT=43306 | ||
FORWARD_REDIS_PORT=46379 | ||
FORWARD_MEILISEARCH_PORT=47700 | ||
FORWARD_MAILHOG_PORT=41025 | ||
FORWARD_MAILHOG_DASHBOARD_PORT=48025 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM composer:2.0 as build | ||
COPY . /app/ | ||
RUN composer install --prefer-dist --no-dev --optimize-autoloader --no-interaction | ||
|
||
FROM php:8.1-apache-buster as production | ||
|
||
ENV APP_ENV=production | ||
ENV APP_DEBUG=false | ||
|
||
RUN docker-php-ext-configure opcache --enable-opcache && \ | ||
docker-php-ext-install pdo pdo_mysql | ||
COPY docker/php/conf.d/opcache.ini /usr/local/etc/php/conf.d/opcache.ini | ||
|
||
COPY --from=build /app /var/www/html | ||
COPY docker/000-default.conf /etc/apache2/sites-available/000-default.conf | ||
COPY .env.prod /var/www/html/.env | ||
|
||
RUN php artisan config:cache && \ | ||
php artisan route:cache && \ | ||
chmod 777 -R /var/www/html/storage/ && \ | ||
chown -R www-data:www-data /var/www/ && \ | ||
a2enmod rewrite |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,13 @@ | |
namespace App\Providers; | ||
|
||
use App\Models\User; | ||
use Dedoc\Scramble\Scramble; | ||
use Illuminate\Pagination\Paginator; | ||
use Illuminate\Routing\Route; | ||
use Illuminate\Support\Facades\Blade; | ||
use Illuminate\Support\Facades\URL; | ||
use Illuminate\Support\ServiceProvider; | ||
use Illuminate\Support\Str; | ||
use Illuminate\Validation\Rules\Password; | ||
use Laravel\Cashier\Cashier; | ||
|
||
|
@@ -40,6 +43,14 @@ public function boot() | |
{ | ||
Paginator::useBootstrap(); | ||
|
||
Scramble::routes(function (Route $route) { | ||
return Str::startsWith($route->uri, 'api/'); | ||
}); | ||
|
||
// Gate::define('viewApiDocs', function (User $user) { | ||
// return in_array($user->email, ['[email protected]']); | ||
// }); | ||
|
||
Blade::if('permission', function ($value) { | ||
return request()->user()->hasPermission($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
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
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
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
Oops, something went wrong.