- At first create a master branch for yourself with your name like
ali/master
- Keep your branch names short, easy to read, and meaningful. Other developers should be able to understand a branch's contents by reading its name.
- Specify a scope for your branch, a branch should not introduce 5 features and fixes 4 bugs at the same time
- Keep your branch updated, merge
master
into your master branch from time to time. An updated branch is easier to review and far more easier to merge. - Make sure that your desired branch name does not have conflict with any remote branches.
This file contains hidden or 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 Tests; | |
use Illuminate\Foundation\Http\FormRequest; | |
use Illuminate\Support\Facades\Validator; | |
use Illuminate\Support\Str; | |
trait InteractsWithValidation | |
{ |
This file contains hidden or 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\Filament\Concerns; | |
use Lang; | |
trait ResourceLabelsTranslation | |
{ | |
public static function getModelLabel(): string | |
{ |
This file contains hidden or 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\Filament\Filters; | |
use Filament\Forms; | |
use Filament\Tables\Filters\BaseFilter; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Support\Facades\Lang; | |
use Illuminate\Support\Str; |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace App\Support\Enums\Concerns; | |
trait HasOptions | |
{ | |
/** | |
* Get an associative array with enum values as keys and labels as values. |
This file contains hidden or 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
import os | |
import sys | |
import json | |
import uuid | |
import hashlib | |
import shutil | |
import sqlite3 | |
import logging | |
from colorama import Fore, Style, init |
This file contains hidden or 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
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
<style> | |
#map { | |
z-index: 1; | |
height: 400px; | |
} | |
.map-container { | |
position: relative; |