Skip to content

Instantly share code, notes, and snippets.

View MrAtiebatie's full-sized avatar

Sjors van Dongen MrAtiebatie

View GitHub Profile
@MrAtiebatie
MrAtiebatie / rotator.js
Created October 15, 2019 08:54
MediaMarkt Rotator
window.onready = function () {
console.log('Gist!');
}
├─ src/
│ ├─ components/
│ ├─ containers/
│ │ ├─ Podcasts.vue
│ ├─ routes/
│ │ └─ index.js
│ ├─ services/
│ │ └─ podcasts.js
│ ├─ store/
│ │ ├─ modules/
├─ src/
│ ├─ core/
│ ├─ modules/
│ │ ├─ Podcasts/
│ │ │ ├─ components/
│ │ │ ├─ pages/
│ │ │ ├─ routes/
│ │ │ ├─ services/
│ │ │ │ ├─ podcasts.api.js
│ │ │ │ └─ podcasts.services.js
@MrAtiebatie
MrAtiebatie / web.php
Created September 20, 2019 10:45
Rendering on demand notifications
<?php
use Illuminate\Notifications\AnonymousNotifiable;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
@MrAtiebatie
MrAtiebatie / web.php
Last active December 12, 2019 20:26
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
<?php
/**
* In your routes/web.php
*/
$router->get('/', function (\App\Repositories\ProductRepository $productRepo) {
// Use any Eloquent feature directly
$productRepo->all()->dd();
<?php
namespace App\Repositories;
use App\Models\Product;
use MrAtiebatie\Repository;
use Illuminate\Database\Eloquent\Model;
/**
* Product repository
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
/**
* The table associated with the model.
alert('Dit is code injection!');