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="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<title>untitled</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> | |
<!-- Main --> |
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
/* change the color to your colors */ | |
background-color: #666666; | |
background-color: #0081c2; | |
background-image: -moz-linear-gradient(top, #666666, #333333); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#666666), to(#333333)); | |
background-image: -webkit-linear-gradient(top, #666666, #333333); | |
background-image: -o-linear-gradient(top, #666666, #333333); | |
background-image: linear-gradient(to bottom, #666666, #333333); | |
background-repeat: repeat-x; | |
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff666666', endColorstr='#ff333333', GradientType=0); |
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
// Link to Back page | |
HTML::macro("back", function($text = "Back"){ | |
return '<a href="{{ Request::referrer() }}">$text</a>'; | |
}); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
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
composer create-project laravel/laravel --prefer-dist |
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 | |
# Create a list with numbers ranging from 10 to 20. | |
Form::selectRange('number', 10, 20); | |
# Create a list with years ranging from 1900 to 2000. | |
Form::selectYear('year', 1900, 2000); | |
# Creates a list with month names. | |
Form::selectMonth('month'); |
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 | |
### --- Snip --- ### | |
App::after(function($request, $response) | |
{ | |
// HTML Minification | |
if(App::Environment() != 'local') | |
{ | |
if($response instanceof Illuminate\Http\Response) |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Delete form macro | |
|-------------------------------------------------------------------------- | |
| | |
| This macro creates a form with only a submit button. | |
| We'll use it to generate forms that will post to a certain url with the DELETE method, | |
| following REST principles. |
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 | |
View::composer(Paginator::getViewName(), function($view) { | |
$query = array_except( Input::query(), Paginator::getPageName() ); | |
$view->paginator->appends($query); | |
}); |
OlderNewer