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; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Product extends Model | |
| { | |
| protected $fillable = ['name','description','quantity','price']; | |
| protected $guarded = ['id', 'created_at', 'update_at']; |
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\Http\Requests\ProductRequest; | |
| use App\Product; | |
| class ProductController extends Controller | |
| { | |
| public function index() |
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 | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateProductsTable extends Migration | |
| { | |
| public function up() | |
| { |
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
| <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; |
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
| <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> |
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
| # 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 |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "file.h" | |
| int main(){ | |
| //code here. | |
| } |
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
| 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: |
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
| #!/bin/bash | |
| :<<'Change the variables to fit your project.' | |
| mkdir wordpress && cd wordpress | |
| touch docker-compose.yml | |
| cat > docker-compose.yml <<EOL |
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
| <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', |
OlderNewer