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 Vue from 'vue'; | |
class SomeState { | |
constructor() | |
{ | |
this.state = Vue.observable({}); | |
} | |
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\Services\YouTube; | |
use Str; | |
class YoutubeUrl | |
{ | |
private string $url; |
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
<!-- USAGE --> | |
<drag-drop-file-upload ref="dragDropFileUpload" @handleInput="changeImage"></drag-drop-file-upload> | |
//Handle image change/upload etc | |
changeImage({file, filePreview}) { | |
console.log({file, filePreview}); | |
}, | |
//Clear files added/dropped onto 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
$types = [ | |
'ABAP' => 'abap', | |
'Windows Bat' => 'bat', | |
'BibTeX' => 'bibtex', | |
'Clojure' => 'clojure', | |
'Coffeescript' => 'coffeescript', | |
'C' => 'c', | |
'C++' => 'cpp', | |
'C#' => 'csharp', | |
'CSS' => 'css', |
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\Support\Traits; | |
use App\Role; | |
use App\UserRole; | |
trait HasRoles | |
{ |
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\Support\Helpers; | |
use Session; | |
/** | |
* Created by PhpStorm. | |
* User: sam | |
* Date: 31/05/17 |
NewerOlder