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 | |
| @foreach (array_chunk($images->toArray(), 4) as $chunk) | |
| <tr> | |
| @foreach($chunk as $image) | |
| <td><img src="{{ $image["url"] }}"></td> | |
| @endforeach | |
| </tr> | |
| @endforeach |
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 Tricks\Services\Upload; | |
| use Mockery; | |
| use TestCase; | |
| $headers = []; | |
| function header($value) { |
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 Tricks\Providers; | |
| use Tricks\Services\Social\Disqus; | |
| use Tricks\Services\Social\Github; | |
| use Illuminate\Support\ServiceProvider; | |
| use Guzzle\Service\Client as GuzzleClient; | |
| use League\OAuth2\Client\Provider\Github as GithubProvider; |
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 Tricks\Providers; | |
| use App; | |
| use Mockery; | |
| use TestCase; | |
| class NavigationServiceProviderTest | |
| extends TestCase |
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 Tricks\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Tricks\Services\Navigation\Builder; | |
| class NavigationServiceProvider extends ServiceProvider | |
| { | |
| /** |
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 Formativ\Theme; | |
| use Illuminate\Foundation\Application; | |
| use Illuminate\Routing\Router; | |
| use Illuminate\Support\ServiceProvider; | |
| class ThemeServiceProvider | |
| extends ServiceProvider |
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 | |
| // https://github.com/teepluss/laravel4-theme/blob/master/src/Teepluss/Theme/Theme.php#L714-L750 | |
| class IndexController | |
| extends BaseController | |
| { | |
| public function indexAction() | |
| { | |
| $foo = "bar"; |
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 | |
| $env = $app->detectEnvironment(function() { | |
| // detect environment here | |
| return "local"; | |
| }); |
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
| https://laracasts.com/search?q=polymorphic | |
| https://laracasts.com/search?q=relationships | |
| http://codeplanet.io/laravel-model-relationships-pt-1 |
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
| /** | |
| * @jsx React.DOM | |
| */ | |
| define(["react"], function(React) { | |
| return React.createClass({ | |
| "render" : function() { | |
| return <div className={(this.props.className || "") + " container"}>{this.props.children}</div>; | |
| } |