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
//: Playground - noun: a place where people can play | |
import Foundation | |
import XCPlayground | |
import PlaygroundSupport | |
import UIKit | |
struct Industry: Codable { | |
let name: String | |
let id: Int | |
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
//: Playground - noun: a place where people can play | |
import Foundation | |
import XCPlayground | |
import PlaygroundSupport | |
import UIKit | |
struct Industry: Codable { | |
let name: String | |
let id: Int | |
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 | |
namespace App\Http\Controllers; | |
use App\Jobs\TestJob; | |
use Illuminate\Http\Request; | |
class TestController extends Controller | |
{ | |
// |
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
<template> | |
<div> | |
<div class="col-md-6 vertical-center" v-for="(user, index) in users" :key="index"> | |
<input type="text" @input="updateUsername(user)" class="form-control" v-model="user.name"> | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
data() { |
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 | |
namespace App\Filters\Sorts; | |
use Spatie\QueryBuilder\Sorts\Sort; | |
use Illuminate\Database\Eloquent\Builder; | |
class AddressSort implements Sort | |
{ | |
public function __invoke(Builder $query, string $property) : Builder |
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
/** | |
* Scope to query the database to return the listings between | |
* a latitude and longitude, with distance. | |
* | |
* @param \Illuminate\Database\Eloquent\Builder $query | |
* @param Double $lat | |
* @param Double $lng | |
* @param Integer $radius - KM | |
* @return \Illuminate\Database\Eloquent\Builder | |
*/ |
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
<template> | |
<div class="jem-paginated-table"> | |
<div class="jem-table-controls w-100"> | |
<div v-if="tableData.showSearch" class="w-100"> | |
<div class="p-3 w-100 d-flex align-items-center"> | |
<div class="input-group" style="max-width: 250px;"> | |
<input | |
class | |
style="max-width: 250px;" | |
v-model="query" |
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
<template> | |
<paginated-table | |
v-if="companies.data" | |
:tableData="tableData" | |
:paginatedData="companies" | |
@pagination-change-page="getCompanies" | |
/> | |
</template> | |
<script> |
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 | |
namespace App\Jobs\Xero; | |
use File; | |
use DateTime; | |
use App\Models\Invoice; | |
use Illuminate\Bus\Queueable; | |
use Spatie\Browsershot\Browsershot; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; |
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 | |
namespace App\Http; | |
class Kernel extends HttpKernel | |
{ | |
/** More code above */ | |
protected $routeMiddleware = [ | |
'auth' => \App\Http\Middleware\Authenticate::class, | |
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, |
OlderNewer