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 require TEMPLATES . '/includes/header.phtml';?> | |
<div class="row"> | |
<div class="col-12"> | |
<?php require TEMPLATES . '/includes/message.phtml';?> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-12"> | |
<h2>Carrinho</h2> |
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 LojaApp\Controller; | |
use LojaApp\MVC\View; | |
use LojaApp\Model\User; | |
use LojaApp\Database\Connection; | |
use LojaApp\Http\Session; | |
use LojaApp\Http\Flash; | |
class UserController |
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 require TEMPLATES . '/includes/header.phtml';?> | |
<div class="row"> | |
<div class="col-12"> | |
<?php require TEMPLATES . '/includes/message.phtml';?> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-12"> |
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 | |
//Application Key | |
$key = ''; | |
//Header Token | |
$header = [ | |
'typ' => 'JWT', | |
'alg' => 'HS256' | |
]; |
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 | |
class Curso | |
{ | |
public $nome; | |
public $descricao; | |
public $slug; | |
public $gratis; | |
public function toArray() |
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
@extends('layouts.app') | |
@section('content') | |
<h1>Criar Produto</h1> | |
<form action="{{route('admin.products.store')}}" method="post"> | |
@csrf | |
<div class="form-group"> | |
<label>Nome Produto</label> |
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
@extends('layouts.app') | |
@section('content') | |
<h1>Atualizar Produto</h1> | |
<form action="{{route('admin.products.update', ['product' => $product->id])}}" method="post"> | |
@csrf | |
@method("PUT") |
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\Admin; | |
use App\Category; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests\CategoryRequest; | |
class CategoryController extends Controller | |
{ |
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
@extends('layouts.app') | |
@section('content') | |
<h1>Atualizar Categoria</h1> | |
<form action="{{route('admin.categories.update', ['category' => $category->id])}}" method="post"> | |
@csrf | |
@method("PUT") | |
<div class="form-group"> |
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
@extends('layouts.app') | |
@section('content') | |
<a href="{{route('admin.categories.create')}}" class="btn btn-lg btn-success">Criar Categoria</a> | |
<table class="table table-striped"> | |
<thead> | |
<tr> |