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
<div class="bg-red-500 sm:bg-teal-500 md:bg-yellow-500 lg:bg-indigo-500 xl:bg-orange-500 fixed flex items-center inset-0 opacity-75 h-8 w-32 mx-auto z-50"> | |
<div class="text-center block mx-auto sm:hidden md:hidden lg:hidden xl:hidden">DEFAULT</div> | |
<div class="text-center hidden mx-auto sm:block md:hidden lg:hidden xl:hidden">SM</div> | |
<div class="text-center hidden mx-auto sm:hidden md:block lg:hidden xl:hidden">MD</div> | |
<div class="text-center hidden mx-auto sm:hidden md:hidden lg:block xl:hidden">LG</div> | |
<div class="text-center hidden mx-auto sm:hidden md:hidden lg:hidden xl:block">XL</div> | |
</div> |
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 Member extends Model implements CurrentMember | |
{ | |
use ModelCache; | |
public function getLeaguePlayer(SectionInterface $section) | |
{ | |
return $this->cache(function(SectionInterface $section) { | |
return $this->leaguePlayers() | |
->where('section_id', $section->getID()) |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Sharing Laravel's session and checking authentication | |
|-------------------------------------------------------------------------- | |
| | |
| Use the following code in any CMS (WordPress, Joomla, etc), filemanager (CKFinder, | |
| KCFinder, simogeos's Filemanager, etc), or any other non-Laravel project to boot into | |
| the Laravel framework, with session support, and check if the user is authenticated. |
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 | |
/** | |
* This exemple shows how to parse base64 encoded images (submitted using Summernote), save them locally | |
* and replace the 'src' attribute in the submited HTML content | |
* | |
**/ | |
use Intervention\Image\ImageManagerStatic as Image; | |
class PostController { | |
public function edit(){ |
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
.twitter-typeahead .tt-query, | |
.twitter-typeahead .tt-hint { | |
margin-bottom: 0; | |
} | |
.tt-hint { | |
display: block; | |
width: 100%; | |
height: 38px; | |
padding: 8px 12px; | |
font-size: 14px; |