Skip to content

Instantly share code, notes, and snippets.

Sidrit Trandafili sidis405

Block or report user

Report or block sidis405

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brunocfalcao / gist:fd8981b1c698aa0f4c86346f0ccc1dce
Last active Jan 7, 2020
Show the breakpoint name in your tailwind webpage
View gist:fd8981b1c698aa0f4c86346f0ccc1dce
<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>
jlem / Member.php
Created Aug 25, 2015
Eloquent model caching
View Member.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())
frzsombor / gist:ddd0e11f93885060ef35
Last active Jan 29, 2020
Share Laravel's session and check authentication from external projects
View gist:ddd0e11f93885060ef35
| 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.
franquis / PostController.php
Last active Jan 28, 2020
Summernote image upload with PHP (Laravel + Intervention\lmage)
View PostController.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(){
bhays / Typeahead-BS3-css
Created Aug 2, 2013
Bootstrap 3 style fixes for using Typeahead.js
View Typeahead-BS3-css
.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;
You can’t perform that action at this time.