Skip to content

Instantly share code, notes, and snippets.

Routes:
Route::resource('/', 'ShoppingController');
Route::get('/prods', 'ProductsController@index');
Controller:
<?php
#Fetches products on the db and sends them to a view: cart.blade.php
namespace App\Http\Controllers;
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="form-horizontal" role="form" method="POST" action="{{ url('/register') }}">
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="form-horizontal" role="form" method="POST" action="{{ url('/register') }}">
User-Course details
Java
Java programming
Taken by student: {"id":1,"username":"WdHNY","email":"woG3EV@gmail.com","enabled":null,"created_at":null,"updated_at":null}
PHP
Easy php app
Taken by student: {"id":1,"username":"WdHNY","email":"woG3EV@gmail.com","enabled":null,"created_at":null,"updated_at":null}
C
Java programming
Taken by student:
User {#207 ▼
#fillable: array:3 [▼
0 => "email"
1 => "password"
2 => "username"
]
#hidden: array:2 [▼
User-Course details
Java
Java programming
Taken by student: WdHNY
PHP
Easy php app
Taken by student: WdHNY
C
//Course model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Course extends Model
{
public function getTakerDets(){
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Facebook.Unity;
public class FBManager : MonoBehaviour {
public Text txtStatus;
public GameObject btnLi, btnLo;
<?php
/**
* coral-parallax functions and definitions
*
* @package coral-parallax
*/
/**
* Set the content width in pixels, based on the theme's design and stylesheet.
*
@MrBeerBrewer
MrBeerBrewer / docker-destroy-all.sh
Created April 14, 2019 17:44 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)