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
#laravel | |
alias pa='php artisan' | |
alias pas='php artisan serve' | |
alias pam='php artisan migrate' | |
alias pam:f='php artisan migrate:fresh' | |
alias pam:fs='php artisan migrate:fresh --seed' | |
alias pad:s='php artisan db:seed' | |
alias pam:rbo='php artisan migrate:rollback --step=1' | |
alias pam:rb='php artisan migrate:rollback' | |
alias parl='php artisan route:list' |
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 | |
namespace App\Enums; | |
enum UserStatusEnum: string | |
{ | |
case ACTIVE = 'active'; | |
case INACTIVE = 'inactive'; | |
case BLOCKED = 'blocked'; |
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
<!-- Include jQuery library --> | |
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
<script> | |
function handleFormSubmit(formSelector, buttonText, successCallback, errorCallback) { | |
$(document).ready(function() { | |
$(formSelector).submit(function(event) { | |
event.preventDefault(); | |
var form = $(this); | |
var method = form.attr("method"); |