Skip to content

Instantly share code, notes, and snippets.

View devmeireles's full-sized avatar
🏠
Working from home

Gabriel Meireles devmeireles

🏠
Working from home
View GitHub Profile
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
<?php
namespace App\Http\Controllers;
use Laravel\Lumen\Routing\Controller as BaseController;
use Illuminate\Http\Request;
use App\BookModel;
class BookController extends BaseController{
public function index(){
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class BookModel extends Model{
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class TableBooks extends Migration
{
/**
* Run the migrations.
APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
@include('admin.layouts.header')
@include('admin.layouts.sidebar')
<div class="main-content">
<div class="section__content section__content--p30">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">{{( !isset($producto->name)) ? ("Nuevo Producto") : ($producto->name)}}</div>
@include('admin.layouts.header')
@include('admin.layouts.sidebar')
<div class="main-content">
<div class="section__content section__content--p30">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="user-data m-b-30">
@if(session()->has('status'))
<?php
namespace App\Http\Controllers;
use App\Productos;
use Illuminate\Http\Request;
class ProductosController extends Controller{
public function index(){
$titulo = 'LaravelShop | Productos - Listar';
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|