- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
| <div class="flex flex-col items-center"> | |
| <div class="w-full md:w-1/2 flex flex-col items-center h-64"> | |
| <div class="w-full px-4"> | |
| <div x-data="selectConfigs()" x-init="fetchOptions()" class="flex flex-col items-center relative"> | |
| <div class="w-full"> | |
| <div @click.away="close()" class="my-2 p-1 bg-white flex border border-gray-200 rounded"> | |
| <input | |
| x-model="filter" | |
| x-transition:leave="transition ease-in duration-100" | |
| x-transition:leave-start="opacity-100" |
| <body class="antialiased sans-serif bg-gray-100"> | |
| <div x-data="app()" x-init="[initDate(), getNoOfDays()]" x-cloak> | |
| <div class="container mx-auto px-4 py-2 md:py-24"> | |
| <!-- <div class="font-bold text-gray-800 text-xl mb-4"> | |
| Schedule Tasks | |
| </div> --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>CodePen - Datepicker with TailwindCSS and AlpineJS</title> | |
| <link | |
| href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" | |
| rel="stylesheet" | |
| /> | |
| <script |
| .snap { | |
| -ms-scroll-snap-type: x mandatory; | |
| scroll-snap-type: x mandatory; | |
| -ms-overflow-style: none; | |
| scroll-behavior: smooth | |
| } | |
| .snap::-webkit-scrollbar { | |
| display: none; | |
| } |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class PewPewPew extends Command | |
| { | |
| protected $signature = 'pewpewpew'; | |
| protected $description = 'Command description'; |
| { | |
| "name": "project-name", | |
| "description": "Template for static sites", | |
| "version": "1.0.0", | |
| "homepage": "http://www.project-name.com", | |
| "author": { | |
| "name": "Adam Reis", | |
| "url": "http://adam.reis.nz" | |
| }, | |
| "license": "UNLICENSED", |
| <?php | |
| namespace App\Http; | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
| */ |