Based on Abdelrahman Omran PWA presentation, and Google PWA Codelab
Based on Abdelrahman Omran PWA presentation, and Google PWA Codelab
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 App\Repositories\UserRepository; | |
class UsersController | |
{ | |
public function baz(UserRepository $users) | |
{ |
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\Repositories; | |
use Rinvex\Repository\Repositories\EloquentRepository; | |
class UserRepository extends EloquentRepository | |
{ | |
protected $repositoryId = 'rinvex.repository.user'; |
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\Repositories; | |
use Illuminate\Contracts\Container\Container; | |
use Rinvex\Repository\Repositories\EloquentRepository; | |
class UserRepository extends EloquentRepository | |
{ | |
public function __construct(Container $container) |
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 | |
interface RepositoryContract | |
{ | |
public function find($id, $columns = ['*'], $with = []); | |
public function findBy($attribute, $value, $columns = ['*'], $with = []); | |
public function findAll($columns = ['*'], $with = []); |
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
// Google Forms Slack Notification | |
// Andy Chase <github.com/andychase> | |
// License: CC0 1.0 Universal <creativecommons.org/publicdomain/zero/1.0> | |
// Install 1: This code goes in ( tools > script editor... ) of your google docs form | |
// Install 2: ( resources > current project triggers ) ( [onSubmit], [from Form], [On form submit] ) | |
// Setup 1: Put your slack api url below | |
var POST_URL = "https://hooks.slack.com/services/"; | |
function onSubmit(e) { |