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
php artisan make:migration create_users_table --create=users | |
php artisan make:migration add_votes_to_users_table --table=users | |
... | |
php artisan migrate | |
php artisan migrate:rollback | |
php artisan migrate:rollback --step=5 | |
TO CAMEL CASE MODEL: model_name "_" characteer becomes uppercase |
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
<a wire:click="$set('vote', 1)">Set var value</a> | |
<a wire:click.prevent="$toogle('booleanval')">Toggle boolean</a> | |
<div wire:offline>Show this when user offline</div> | |
<!-- simple input text: --> | |
<input type='text' wire:model.debounce.2s .500ms="name"> | |
<!-- button confirm and event prevent: --> | |
<button wire:click.prevent="delete({{ $product->id }})" onclick="confirm('Are you sure') || event.stopImmediatePropagation()"> | |
Delete | |
</button> |