Getting to know Enums
This is a neat implementation of enums where I don't need to put most of my enums in the model.
//create folder and file called Enums/Relationship
Security through examples - notes
Some of these tips helped me understand the security side of laravel and how one user uses these tricks to check if it's vulnerable. On a good note, we're in good hands with these frameworks as they keep on updating some basic security, so we focus on more advanced security.
Laravel Sanctum Rest Api Authentication
I want to make a rest API authentication to my current project. I didn't want to make another project just for this API. Here I use Breeze first to be able to make login, register, and so on then I want to make Authentication for my mobile app.
If you're
Fire incident near our house
As I went back from the office, upon getting in my car, my daughter called with a panic voice, that there was a fire behind the house. As I heard this I went straight home without thinking why didn't I just leave the car at the office. Midway through the
Laracast Livewire Basic Notes
Good for Real time validation, search dropdown, autocomplete, data tables, fileupload
Quickstart | Livewire
composer require livewire/livewire
Making a Counter
php artisan livewire:make Counter
counter++;
}
public function decrement() {
$this->counter--;
Anthony Robbins - unlimited power Notes
Ultimate power is the ability to produce the results you desire most and create value for others in the process. Power is the ability to change your life, to shape your perceptions, to make things work for you and not against you. Real power is shared, not imposed. It’s
Laravel Multitenancy
Multi-tenancy is the ability to provide your service to multiple users (tenants) from a single hosted instance of the application. This is contrasted with deploying the application separately for each user.
composer require stancl/tenancy
Then run
php artisan tenancy:install
This will create config/tenancy.php, routes/tenant.php,
Beginning React - Laracast - Notes
Learned a lot about React from this series, it just went straight to the point, all the necessary skills we need. Although sometimes he doesn't give us a template to work on, I had to get it from his repository on Git Hub.
Getting the boilerlate
find the commit then
Apa itu homeschooling - Catatan
Sekolah adalah salah satu jalan mendapatkan pendidikan tetapi pendidikan itu sendiri tak hanya sekolah. Sebutan untuk pendidikan berbasis keluarga adalah homeschooling atau sekolah rumah.
Anak-anak yang dididik di rumah ini berkembang dengan baik, tumbuh dengan wajar dan bahagia.
Menurut riset di US, prestassi akademis rata-rata anak homeschooling lebih baik dibandingkan
Build Modern Laravel Apps Using Inertia.js - Note
laravel new inertia
cd inertia
composer require inertiajs/inertia-laravel
php artisan inertia:middleware
npm install vue@next
@vite('resources/js/app.js')
@inertiaHead
@inertia
import { createApp, h } from 'vue'
import { createInertiaApp } from '@inertiajs/vue3'
createInertiaApp({
resol