Skip to content

Instantly share code, notes, and snippets.

View hanspagel's full-sized avatar
👀

Hans Pagel hanspagel

👀
View GitHub Profile
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOauthAuthCodesTable extends Migration
{
public function up()
{
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class UuidRule implements Rule
{
public function passes($attribute, $value)
{
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostsTable extends Migration
{
public function up()
{
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
protected $casts = [
'id' => 'string',
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
public function up()
<?php
namespace App\Providers;
use Laravel\Passport\Passport;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
// …
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
protected $namespace = 'App\Http\Controllers';
<?php
namespace App\Http\Controllers;
use App\Models\Project;
use Illuminate\Http\Request;
class ProjectController extends Controller
{
public function update(Request $request, Project $project)
@hanspagel
hanspagel / .bash_profile
Created August 18, 2016 08:53
some aliases for the bash
alias web='cd ~/Documents/Websites'
alias apps='cd ~/Documents/Apps'
alias okgrunt='git pull && sublime . && grunt'
alias ok='git pull && sublime .'
alias okgo='git pull && sublime . && vagrant up'
alias okgogrunt='git pull && sublime . && vagrant up && npm install && grunt'
alias okupdate='ncu -u && composer update'
alias subl='sublime .'
function test() {
alert('Klugscheißer');
}