Skip to content

Instantly share code, notes, and snippets.

View andreferraro's full-sized avatar
🎯
Focusing

Andre Ferraro andreferraro

🎯
Focusing
  • Brazil
  • 14:47 (UTC -03:00)
View GitHub Profile
@extends('layout')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">{{ trans('validation.attributes.login') }}</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
<?php namespace App\Http\Controllers;
class HomeController extends Controller {
/**
* Show the application dashboard to the user.
*
* @return Response
*/
public function index()
@extends('layout')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Home</div>
<div class="panel-body">
<p>Bem vindo à aplica&ccedil;&atilde;o!</p>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css", rel="stylesheet" type="text/css">
{!! Html::style('css/app.css') !!}
+----+--------------------+----------------------------+------------+----------+----------------+---------------------+---------------------+
| id | name | email | password | role | remember_token | created_at | updated_at |
+----+--------------------+----------------------------+------------+----------+----------------+---------------------+---------------------+
| 1 | Ferraro | [email protected] | 123mudar | admin | 50yVAsGSAy | 2015-07-23 14:33:58 | 2015-07-23 14:33:58 |
| 2 | Keyshawn Reilly | [email protected] | DphV8iSaDC | suporte | ZbTJcLhvQ5 | 2015-07-23 14:33:58 | 2015-07-23 14:33:58 |
| 3 | Brenda Dach | [email protected] | 5b93E9nNzv | suporte | SHHlCgS59W | 2015-07-23 14:33:58 | 2015-07-23 14:33:58 |
| 4 | Santa Haag V | [email protected] | zKkVjMrVe9 | vendedor | HsYEkJzaWW | 2015-07-23 14:33:58 | 2015-07-23 14:33:58 |
| 5 | Antonetta Schultz | th
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
<?php
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*