Skip to content

Instantly share code, notes, and snippets.

View npostman's full-sized avatar

Niels npostman

View GitHub Profile
@npostman
npostman / AppServiceProvider.php
Last active June 17, 2022 07:16
Laravel Blade directive @error to allow array input
<?php
namespace App\Providers;
use Blade;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@npostman
npostman / deploy.sh
Last active July 17, 2022 14:11 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
$FORGE_PHP artisan down --render='errors::503' --retry=30 || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH