Originally posted by @brlebtag in eidellev/inertiajs-adonisjs#117 (comment)
Originally posted by @qkab78 in eidellev/inertiajs-adonisjs#117 (comment)
. Create a new adonis project:
npm init adonis-ts-app@latest adonisssr
Originally posted by @brlebtag in eidellev/inertiajs-adonisjs#117 (comment)
Originally posted by @qkab78 in eidellev/inertiajs-adonisjs#117 (comment)
. Create a new adonis project:
npm init adonis-ts-app@latest adonisssr
| <template> | |
| <div class="hello"> | |
| <h1>{{ msg }}</h1> | |
| <div class="section"> | |
| <el-input type="text" v-model="input" auto-complete="off" style="width:80%;"></el-input> | |
| </div> | |
| <div class="section"> | |
| <el-button type="button" @click="send">送信</el-button> | |
| <el-button type="button" @click="disconnect">切断</el-button> | |
| </div> |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Facades\App; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Contracts\Filesystem\FileNotFoundException; | |
| class ConfigServiceProvider extends ServiceProvider | |
| { |
Source: https://medium.com/@Mahmoud_Zalt/eloquent-relationships-cheat-sheet-5155498c209
| One to one ( 1-1) |
One to many ( 1-n) |
Poly one to many ( 1x-n) |
Many to many ( n-n) |
Poly many to many ( nx-n) |
|
|---|---|---|---|---|---|
| Number of models | 2 only | 2 only | 3 and above | 2 only | 3 and above |
| Number of tables | 2 (1/model) | 2 (1/model) | 3+ (1/model) | 3 (1/model + pivot) | 4+ (1/model + pivot) |
| Pivot table | - | - | - | required |
Picking the right architecture = Picking the right battles + Managing trade-offs
| .visible-android { | |
| display:none; | |
| } | |
| .visible-ios { | |
| display:none; | |
| } | |
| .on-device .visible-android, .on-device .visible-android { | |
| display:inherit; | |
| } | |
| .device-ios .visible-android { |