Compare commits

...
4 Commits
Author SHA1 Message Date
Adam Engebretson 3a312d39ff Merge pull request #153 from mikemand/patch-1
Use array_get's third parameter for default value.
2016-01-27 16:29:54 -06:00
Micheal Mand fa2628d311 Use array_get's third parameter for default value.
This allows for using boolean values as default options.
2016-01-27 14:49:58 -06:00
Adam Engebretson e5011d337c Merge pull request #151 from antonioribeiro/patch-1
Remove uneeded use.
2016-01-26 18:26:51 -06:00
Antonio Carlos Ribeiro 0e8e2dbc67 Remove uneeded use. 2016-01-26 21:39:03 -02:00
2 changed files with 1 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ trait Componentable
$default = null;
}
$data[$variable] = array_get($arguments, $i) ?: $default;
$data[$variable] = array_get($arguments, $i, $default);
$i++;
}
-1
View File
@@ -7,7 +7,6 @@ use BadMethodCallException;
use Illuminate\Support\Collection;
use Illuminate\Support\HtmlString;
use Illuminate\Contracts\View\Factory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Session\SessionInterface;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Contracts\Routing\UrlGenerator;