/*
in a program a vaiable has:
1- Name
2- Type
3- Size
4- Value
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 | |
| /** | |
| * Generate an HTML heading tag | |
| * | |
| * @param string $data Content inside heading | |
| * @param string $h Heading level (1-6) | |
| * @param mixed $attributes HTML attributes (string or array) | |
| * | |
| * @return string | |
| */ |
A structured roadmap to guide you from beginner to intermediate and advanced levels in Laravel development.
- Beginner Projects → Build CRUD mastery.
- Intermediate Projects → Add relationships, file uploads, and roles.
- Advanced Projects → Learn queues, APIs, testing, payments.
- Expert Projects → Dive into architecture, scaling, and DevOps.
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
| @props(['name','title']) | |
| <div | |
| x-data="{ show : false,name:'{{ $name }}' }" | |
| x-show="show" | |
| {{-- x-on:open-modal.window="show=true" --}} | |
| x-on:open-modal.window="show = ($event.detail.name === name)" | |
| x-on:close-modal.window="show=false" | |
| x-on:keydown.escape.window="show=false" | |
| class="fixed z-50 inset-0" | |
| style="display: none" |
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\Livewire; | |
| use App\Models\User; | |
| use Illuminate\Support\Facades\Hash; | |
| use Livewire\Attributes\Computed; | |
| use Livewire\Attributes\Rule; | |
| use Livewire\Attributes\Title; | |
| use Livewire\Attributes\Url; | |
| use Livewire\Component; |
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\Livewire; | |
| use App\Models\Todo; | |
| use Exception; | |
| use Livewire\Attributes\Layout; | |
| use Livewire\Attributes\Rule; | |
| use Livewire\Attributes\Title; | |
| use Livewire\Component; |
NewerOlder