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
| $query = $articles->find() | |
| ->where(['title LIKE' => '%First%']) | |
| ->andWhere(function ($exp) { | |
| return $exp->or_([ | |
| 'author_id' => 2, | |
| 'is_highlighted' => true | |
| ]); | |
| }); |
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\Mailer\Preview; | |
| use Cake\Core\Configure; | |
| use Cake\ORM\Locator\LocatorAwareTrait; | |
| use DebugKit\Mailer\MailPreview; | |
| class UsersMailPreview extends MailPreview | |
| { | |
| use LocatorAwareTrait; |
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
| { | |
| "require": { | |
| "sdevore/cakephp-scid-plugin": "dev-feature/bootstrap-4", | |
| }, | |
| "repositories": [ | |
| { | |
| "type": "vcs", | |
| "url": "[email protected]:sdevore/cakephp-scid-plugin.git" | |
| }, | |
| ], |
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
| import { Model } from "@vuex-orm/core"; | |
| import { required, maxLength, minLength } from "vuelidate/lib/validators"; | |
| export default class Comment extends Model { | |
| static fields() { | |
| return { | |
| id: this.attr(null), | |
| text: this.string(""), | |
| }; | |
| } |
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
| <form v-model="$v.valid" @submit.prevent="submit"> | |
| <input | |
| type="text" | |
| v-model.trim="$v.form.text.$model" | |
| @input="$v.form.text.$touch()" | |
| @blur="$v.form.text.$touch()" | |
| /> | |
| <button @click="submit">Submit</button> | |
| </form> |
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
| get available () { | |
| const status = this.status.toLowerCase() | |
| // if the date is essentially empty then | |
| if (['', '0000-00-00'].includes(this.when_available.trim())) { | |
| // if the status contains `not ready` then show `Coming Soon` | |
| if (status.indexOf('not ready') !== -1) { | |
| return 'Coming Soon' | |
| } | |
| // other wise it is `Available` | |
| return 'Available' |
OlderNewer