Skip to content

Instantly share code, notes, and snippets.

View ayoubbajjou's full-sized avatar
💻
Full Stack Developer | Laravel - VueJS & ReactJS | Mobile Developer

Ayoub Bajjou ayoubbajjou

💻
Full Stack Developer | Laravel - VueJS & ReactJS | Mobile Developer
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ayoubbajjou
ayoubbajjou / Enums.php
Created August 9, 2021 12:56 — forked from jhoff/Enums.php
Laravel Model Enumeration Trait
<?php
namespace App\Traits;
use Illuminate\Support\Str;
use App\Exceptions\InvalidEnumException;
trait Enums
{
/**
@ayoubbajjou
ayoubbajjou / NewPretendClassMethodIsControllerMethod.php
Created June 14, 2020 18:09
The optimized PretendClassMethodIsControllerMethod class
<?php
// this is the new class
namespace Livewire\Macros;
class NewPretendClassMethodIsControllerMethod
{
protected $method;