This file contains 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
{# | |
According to docs (https://craftcms.com/docs/templating/eager-loading-elements), | |
this is how you Eager-Load Nested Sets of Elements | |
#} | |
{% set entries = craft.entries({ | |
section: 'news', | |
with: [ | |
'entriesField.assetsField' | |
] |
This file contains 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
<template> | |
<form action="#" @submit.prevent="submitForm"> | |
<div class="form-group"> | |
<label for="my-input">Text</label> | |
<input | |
id="my-input" | |
class="form-control" | |
type="file" | |
ref="fileUpload" | |
@change="handleFileUpload" |
This file contains 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\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
This file contains 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
fields: | |
test_addon: | |
type: test | |
validate: required |
This file contains 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
fields: | |
mailchimp_key: | |
type: text | |
validate: required | |
user_section: | |
type: section | |
display: Users | |
add_new_users: | |
type: toggle | |
display: Add New Users? |
This file contains 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
// Theme Styles | |
@import 'theme/style'; |
This file contains 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; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['name', 'content']; |
This file contains 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; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['name', 'content']; |
This file contains 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; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['name', 'content']; |
This file contains 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
var p1 = new Promise((resolve, reject) => { | |
setTimeout(resolve, 1000, "one"); | |
}); | |
var p2 = new Promise((resolve, reject) => { | |
setTimeout(resolve, 2000, "two"); | |
}); | |
var p3 = new Promise((resolve, reject) => { | |
setTimeout(resolve, 3000, "three"); | |
}); | |
var p4 = new Promise((resolve, reject) => { |
NewerOlder