Skip to content

Instantly share code, notes, and snippets.

View daniels-martins's full-sized avatar
😋
Lots of Milk + My MacBook Pro + Internet + Cashew + Good Music

Martins Daniels daniels-martins

😋
Lots of Milk + My MacBook Pro + Internet + Cashew + Good Music
View GitHub Profile
<?php
namespace App\Livewire\Admin;
use App\Models\StudentRecord;
use App\Models\SubgradeSubjectTeacher;
use App\Models\User;
use App\Traits\LivewireTraits\SubjectResultApprovalTrait;
use Livewire\Attributes\On;
use Livewire\Component;
<?php
namespace App\Livewire\Admin;
use App\Models\AcademicSession;
use App\Models\StudentResult;
use App\Models\SubGrade;
use App\Models\Term;
use App\Models\User;
use InvalidArgumentException;
@daniels-martins
daniels-martins / deployment.yaml
Last active January 1, 2025 12:37
kubernetes manifest for laravel chat app
---
apiVersion: v1
kind: ConfigMap
metadata:
name: laravel-config
namespace: default
data:
WWWGROUP: "${WWWGROUP}"
WWWUSER: "${WWWUSER}"
LARAVEL_SAIL: "1"
@daniels-martins
daniels-martins / gist:aef08182ad6b16f32d261442b2e27b0d
Created October 14, 2024 14:09
code shared for array manipulation
$okoros = [
// james okoro
'james' => [
'first_name' => 'james',
'age' => 54,
'nickname' => 'jj',
'gender' => 'male',
"children" => [
@daniels-martins
daniels-martins / bgimage.css
Created June 8, 2020 20:28 — forked from adamdehaven/bgimage.css
Bootstrap full-width hero section with text and image
.bgimage {
width:100%;
height:500px;
background: url('https://images.unsplash.com/photo-1438109491414-7198515b166b?q=80&fm=jpg&s=cbdabf7a79c087a0b060670a6d79726c');
background-repeat: no-repeat;
background-position: center;
background-size:cover;
background-attachment: fixed;
}