Skip to content

Instantly share code, notes, and snippets.

View M-Abdullahi's full-sized avatar
:octocat:
Available

M. Abdullahi M-Abdullahi

:octocat:
Available
View GitHub Profile
@M-Abdullahi
M-Abdullahi / gist:3e17b84959088c835539d3f6a4ef893f
Last active February 15, 2019 05:02 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@M-Abdullahi
M-Abdullahi / mp-1-g3.md
Created December 8, 2020 09:13 — forked from sander3/mp-1-g3.md
Medium post 1, Gist 3
$teams = App\Team::whereHas('portfolios', function ($query) use ($user) {
    // Only include teams with portfolios where...
    $query->whereHas('wallets', function ($query) use ($user) {
        // ...there are wallets...
        $query->whereHas('transactions', function ($query) {
            // ...with pending transactions...
            $query->whereStatus('pending');
        });
@M-Abdullahi
M-Abdullahi / mp-1-g2.md
Created December 8, 2020 09:14 — forked from sander3/mp-1-g2.md
Medium post 1, Gist 2
$teams = App\Team::with([
    'portfolios' => function ($query) use ($user) {
        // Only include portfolios where...
        $query->whereHas('wallets', function ($query) use ($user) {
            // ...there are wallets...
            $query->whereHas('transactions', function ($query) {
                // ...with pending transactions...
                $query->whereStatus('pending');
            });