Skip to content

Instantly share code, notes, and snippets.

View NandoKstroNet's full-sized avatar
🎯
Focusing

Nando Kstro Net NandoKstroNet

🎯
Focusing
View GitHub Profile
{% extends'admin/admin.html.twig' %}
{% block body %}
<h1> Admim Menus </h1>
<table>
<thead>
<tr>
<th>Matricula</th>
<th>Titulo</th>
<th>Criado em</th>
@NandoKstroNet
NandoKstroNet / Product.php
Created April 26, 2018 17:21
codeexpertslearning.com.br
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ProductRepository")
*/
class Product
@NandoKstroNet
NandoKstroNet / Version20180426150206.php
Created April 26, 2018 17:28
codeexpertslearning.com.br
<?php declare(strict_types = 1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
@NandoKstroNet
NandoKstroNet / CustomAuthenticator.php
Last active May 23, 2018 15:46
CustomAuthenticator para o Symfony Security Guard. Symfony 3.4 -- curso Construindo API com Symfony.
<?php
namespace ApiBundle\Security;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Lexik\Bundle\JWTAuthenticationBundle\Encoder\JWTEncoderInterface;
use Lexik\Bundle\JWTAuthenticationBundle\TokenExtractor\AuthorizationHeaderTokenExtractor;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Página Inicial Do Painel</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.content {
margin-top: 80px;
CREATE TABLE `products` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_id` int(11) DEFAULT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`price` float(10,2) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`description` text COLLATE utf8_unicode_ci,
`slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
@extends('layouts.app')
@section('content')
<div class="container">
<div class="col-12">
<h1>Cadastro de Fotos Restaurante</h1>
<hr>
</div>
<div class="col-12">
<form action="{{route('restaurant.photo.save', ['id' => $restaurant_id])}}" method="post" enctype="multipart/form-data">
<!--
Generated template for the SavePage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<ion-title>Cadastro de Curso</ion-title>
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Home</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class UploadController extends Controller