<?php
“Laravel artisan call with confirm”
rotected $signature = 'order:check {--silent=y}'
public function handle()
{
$silent = $this->option('silent');
if ($this->confirm('This will run the command code continue?') || $silent) {
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
“Laravel append parameter to links”
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
<?php
Laravel adding condition to relation
App\Request::where('id',4) ->whereHas('quotes', function ($query) { $query->where('status','=','3'); }) ->with('quotes','sourceTable','destinationTable') ->get(); class Game extends Eloquent { // many more stuff here // relation without any constraints ...works fine public function videos() { return $this->hasMany('Video'); } // results in a "problem", se examples below public function available_videos() { return $this->videos()->where('available','=', 1)->get(); }}