from Laravel fresh install
# free Login/Register controller
composer require laravel/ui
import { Inertia } from '@inertiajs/inertia' | |
document.addEventListener('click', (event) => { | |
if ( | |
event.target.tagName.toLowerCase() === 'a' && | |
event.target.hasAttribute('inertia') && | |
!event.target.isContentEditable && | |
!event.defaultPrevented && | |
!event.shiftKey && | |
!event.ctrlKey && |
// resources/js/services/Form.js | |
import FormErrors from './FormErrors' | |
export default class { | |
constructor (initialData = {}, submitCallback = null) { | |
this._initialData = initialData | |
this._submitCallback = submitCallback | |
this.errors = new FormErrors() |
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
This is a simplified, but fairly thorough, set of scripts and configuration to enable Heroku Release Phase for Rails apps.
Further, this particular set up plays nicely with Heroku Review Apps in that the release
phase script will:
bin/rails db:version
) is 0
.For a "normal" app that usually means it will run the DB migrations.
Quick guide on how to setup git signing. Information is aggregated from following sources:
/** | |
* base64ToFile | |
* @param $base64 | |
* @param $path | |
* @param int $width | |
* @param int $height | |
* @return string | |
* @info usage 'Image' => Intervention\Image\Facades\Image::class | |
*/ | |
public static function base64ToFile($base64, $path, $width = 400, $height = 400) |