This file contains 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
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; |
This file contains 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
@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') }}"> |
This file contains 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
@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') }}"> |
This file contains 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
User-Course details | |
Java | |
Java programming | |
Taken by student: {"id":1,"username":"WdHNY","email":"[email protected]","enabled":null,"created_at":null,"updated_at":null} | |
PHP | |
Easy php app | |
Taken by student: {"id":1,"username":"WdHNY","email":"[email protected]","enabled":null,"created_at":null,"updated_at":null} | |
C |
This file contains 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
Java programming | |
Taken by student: | |
User {#207 ▼ | |
#fillable: array:3 [▼ | |
0 => "email" | |
1 => "password" | |
2 => "username" | |
] | |
#hidden: array:2 [▼ |
This file contains 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
User-Course details | |
Java | |
Java programming | |
Taken by student: WdHNY | |
PHP | |
Easy php app | |
Taken by student: WdHNY | |
C |
This file contains 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
//Course model | |
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Course extends Model | |
{ | |
public function getTakerDets(){ |
This file contains 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
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; |
This file contains 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 | |
/** | |
* coral-parallax functions and definitions | |
* | |
* @package coral-parallax | |
*/ | |
/** | |
* Set the content width in pixels, based on the theme's design and stylesheet. | |
* |
This file contains 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 | |
# 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) |
OlderNewer