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('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"> |
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 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. |
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; | |
class HomeController extends Controller { | |
/** | |
* Show the application dashboard to the user. | |
* | |
* @return Response | |
*/ | |
public function index() |
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('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ção!</p> | |
</div> |
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
<!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') !!} |
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
+----+--------------------+----------------------------+------------+----------+----------------+---------------------+---------------------+ | |
| 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 |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| 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. |
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 | |
use Illuminate\Database\Seeder; | |
class UserTableSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() |
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 | |
use Illuminate\Database\Seeder; | |
use Illuminate\Database\Eloquent\Model; | |
class DatabaseSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. | |
* |