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
/* eslint-disable no-undef */ | |
/* eslint-disable curly */ | |
/* eslint-disable padded-blocks */ | |
const elementAttributes = {}; | |
// Exception | |
// tabindex seem to be allowed on any element according to https://www.w3schools.com/tags/att_global_tabindex.asp | |
// but here https://www.w3.org/TR/html4/index/attributes.html seem not | |
// So below we add this exception | |
const allowedAttributes = ['tabindex']; |
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
/** | |
* List of valid HTML attributes that will be passed to first node of component or | |
* to the node with an attribute 'attributes'. | |
* Generated from https://www.w3.org/TR/html4/index/attributes.html | |
* | |
* @see https://jsfiddle.net/1r8czt2h/ | |
*/ | |
module.exports = { | |
elementAttributes: { |
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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\File; | |
use Tightenco\Ziggy\Ziggy; | |
class GenerateRoutesCommand extends Command | |
{ |
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
const loop = (() => { | |
const recur = (callback, count, i=0) => { | |
if (i == count-1) return callback(i); | |
callback(i); | |
return recur(callback, count, i+1); | |
}; | |
return (callback, count) => { | |
if (count > 0) return recur(callback, count); | |
}; | |
})(); |
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
{ | |
"data":{ | |
"articles":[ | |
{ | |
"id":39550, | |
"title":"Eum dolorem est maxime voluptas deleniti dicta repellat corrupti dolor ab.", | |
"summary":"I don't keep the same size for ten minutes together!' 'Can't remember WHAT things?' said the Caterpillar. Alice folded her hands, and she told her sister, as well wait, as she could, for the.", | |
"body":"Lizard as she was quite impossible to say than his first speech. 'You should learn not to make ONE respectable person!' Soon her eye fell on a three-legged stool in the pictures of him), while the rest of it appeared. 'I don't much care where--' said Alice. 'Why, there they are!' said the Mouse, sharply and very angrily. 'A knot!' said Alice, 'we learned French and music.' 'And washing?' said the Mouse with an anxious look at me like a writing-desk?' 'Come, we shall have to ask help of any that do,' Alice said nothing; she had expected: before she came upon a Gryphon, lying fast asleep in the way the people that w |
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\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Validation\ValidationException; | |
use App\Models\User; | |
use App\Http\Resources\UserResource; |
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\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Validation\ValidationException; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\RateLimiter; | |
use Illuminate\Auth\Events\Lockout; |
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 Laraloop\Frontend\Http\Controllers; | |
use Illuminate\Http\JsonResponse; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Validation\ValidationException; |
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
.container, | |
.container-fluid, | |
.container-xxl, | |
.container-xl, | |
.container-lg, | |
.container-md, | |
.container-sm { | |
width: 100%; | |
padding-right: var(--bs-gutter-x, 0.75rem); | |
padding-left: var(--bs-gutter-x, 0.75rem); |
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\Api\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Models\User; | |
use Spatie\QueryBuilder\QueryBuilder; | |
use App\Api\Http\Resources\User as UserResource; | |
use App\Api\Http\Resources\UserCollection; | |
use App\Api\Http\Requests\UserCreateRequest; |
NewerOlder