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 time = ''; | |
var hour = 0; | |
var min = 0; | |
var sec = 0; | |
$.each($('.Lesson-List__length'), function(i, el) { | |
min += parseInt($(el).text().split(':')[0]); | |
sec += parseInt($(el).text().split(':')[1]); | |
if(sec >= 60) { | |
min += parseInt(sec/60); | |
sec %= 60; |
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
class Entity | |
{ | |
protected Texture2D _texture; | |
public Vector2 Position; | |
protected Vector2 _velocity; | |
public Vector2 Velocity { get { return _velocity; } } | |
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
<!-- Phone --> | |
<div class="form-group" :class="{'has-error': form.errors.has('phone')}"> | |
<label class="col-md-4 control-label">Phone</label> | |
<div class="col-md-6"> | |
<input type="phone" class="form-control" name="phone" v-model="form.phone"> | |
<span class="help-block" v-show="form.errors.has('phone')"> | |
@{{ form.errors.get('phone') }} | |
</span> |
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 base = require('settings/profile/update-contact-information'); | |
Vue.component('spark-update-contact-information', { | |
mixins: [base], | |
/** | |
* The component's data. | |
*/ | |
data() { | |
return { |
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 | |
class SparkServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. | |
* | |
* @return void | |
*/ | |
public function register() |
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 | |
class ContactInformationController extends Controller | |
{ | |
//... | |
/** | |
* Update the user's contact information settings. | |
* | |
* @param Request $request |
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 | |
class UpdateContactInformation implements Contract | |
{ | |
/** | |
* {@inheritdoc} | |
*/ | |
public function handle($user, array $data) | |
{ | |
$user->forceFill([ |
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 | |
class SparkServiceProvider | |
{ | |
public function booted() | |
{ | |
Spark::swap('UpdateContactInformatio@handle', function ($user, array $data) { | |
$user->forceFill([ | |
'name' => $data['name'], |
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\SparkExtensions; | |
use Illuminate\Support\Facades\Validator; | |
use Laravel\Spark\Events\Profile\ContactInformationUpdated; | |
use Laravel\Spark\Interactions\Settings\Profile\UpdateContactInformation as SparkUpdateContactInformation; | |
class UpdateContactInformation extends SparkUpdateContactInformation | |
{ |
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 Project extends Model | |
{ | |
public function getFooAttribute() | |
{ |
OlderNewer