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
# fix repositories | |
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo | |
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo | |
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo | |
echo "sslverify=false" >> /etc/yum.conf | |
yum makecache fast | |
# install EPEL and SCL repo | |
yum install -y epel-release centos-release-scl |
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 | |
use Illuminate\Database\Eloquent\Collection; | |
use Laravel\Nova\Actions\DispatchAction; | |
use Laravel\Nova\Http\Requests\ActionRequest; | |
class ModelObserver | |
{ | |
public function created(Model $model) | |
{ |
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
var rtype = /^(?:button|input)$/i; | |
jQuery.attrHooks.type.set = function(elem, value) { | |
// We can't allow the type property to be changed (since it causes problems in IE) | |
if (rtype.test(elem.nodeName) && elem.parentNode) { | |
// jQuery.error( "type property can't be changed" ); | |
// JB: Or ... can it!? | |
var $el = $(elem); | |
var insertionFn = 'after'; |