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
html, body{ | |
min-height: 101% !important; | |
margin-right: 0px !important; | |
overflow-y: visible !important; | |
} |
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 App\Http\Controllers; | |
use GuzzleHttp\Client; | |
class PostsAuthController extends Controller | |
{ | |
//class variables | |
private $sessionId; | |
public $curl; | |
public function __construct() | |
{ |
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 App\Http\Controllers; | |
use GuzzleHttp\Client; | |
class PostsAuthController extends Controller | |
{ | |
//class variables |
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
BEFORE you try to SSH into server type: | |
eval `ssh-agent -s` | |
ssh-add ~/.ssh/id_rsa where id_rsa is the file with your ssh key (this is the default version so chances are yours is the same. If not, change it. | |
ssh [email protected] and hopefully no password required Needed them to log on. (From Tutorial https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh) | |
I used gitbash for this. |
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
if (isset($options['event_host'])) { | |
$query->join('event_hosts', 'events.id', '=', 'event_hosts.event_id') | |
->orWhere(function ($q) use ($options, $query){ | |
foreach ($options['event_host'] as $e){ | |
$query = $q->where('event_hosts.host_name', 'LIKE', '%'.$e.'%'); | |
} | |
}); | |
} |
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
$('#myModal1').hide() | |
$('body').removeClass('modal-open'); | |
$('.modal-backdrop').remove(); | |
$("div").removeClass("mfp-bg") |
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
keywords.select2({ | |
tags: true, | |
createTag: function (params) { | |
var term = $.trim(params.term); | |
var count = 0 | |
var existsVar = false; | |
//check if there is any option already | |
if($('#keywords option').length > 0){ | |
$('#keywords option').each(function(){ | |
if ($(this).text().toUpperCase() == term.toUpperCase()) { |
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 App\Model; | |
use App\Http\Controllers\EventController; | |
use App\User; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\SoftDeletes; | |
use App\Price; |
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
<div class="row clearfix"> | |
<h4 class="text-center"> | |
@if($radius != 0 && $resultsCount == 0) | |
Zero Results Within {{$radius}} Km | |
@elseif((!empty($marketLocation) && $marketLocationMatchedCount == 0)) | |
Not Available in {{$marketLocation}} | |
@elseif(!empty($marketLocation) && $marketLocationMatchedCount > 0) | |
Available in {{$marketLocation}} | |
@endif | |
</h4> |
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 | |
//Get current page form url e.g. &page=6 | |
$currentPage = LengthAwarePaginator::resolveCurrentPage(); | |
//Create a new Laravel collection from the array data | |
$collection = new Collection($data); | |
//Define how many items we want to be visible in each page | |
$perPage = 48; |