Skip to content

Instantly share code, notes, and snippets.

View victorhugorch's full-sized avatar
🤠
See you, space cowboy.

victorhugo victorhugorch

🤠
See you, space cowboy.
View GitHub Profile
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
protected $fillable = ['name','description','quantity','price'];
protected $guarded = ['id', 'created_at', 'update_at'];
<?php
namespace App\Http\Controllers;
use App\Http\Requests\ProductRequest;
use App\Product;
class ProductController extends Controller
{
public function index()
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductsTable extends Migration
{
public function up()
{
<template>
<div v-show="scrolled" v-on:click="backToTop()" class="animated fadeIn scrollup image is-48x48">
<img src="../assets/images/scroll-top.png" title="Back to top">
</div>
</template>
<style lang="scss">
.scrollup {
position: fixed;
bottom: 5px;
<template>
<section class="hero is-medium">
<div class="hero-body">
<div class="container has-text-centered">
<div class="columns is-vcentered">
<div class="column is-4 contactText">
<p class="title is-1 contactTitle">Contact Us</p>
<p class="subtitle is-3">
Explain how we can help you
<i class="fa fa-heart"></i>
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
#include <stdio.h>
#include <stdlib.h>
#include "file.h"
int main(){
//code here.
}
@victorhugorch
victorhugorch / LICENSE
Created April 27, 2017 04:58
MIT LICENSE
MIT License
Copyright (c) 2017 Victor Hugo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
#!/bin/bash
:<<'Change the variables to fit your project.'
mkdir wordpress && cd wordpress
touch docker-compose.yml
cat > docker-compose.yml <<EOL
<script>
import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
const qs = require('qs')
Vue.use(VueAxios, axios)
export default {
name: 'home',