php artisan migrate:make create_filmes_table --table=filmes --create
<?php
use Illuminate\Database\Schema\Blueprint;
| .ir { /*Image replacement */ | |
| border:0; | |
| font: 0/0 a; | |
| color:transparent; | |
| background-color: transparent; | |
| } |
| /********************* | |
| WP_HEAD GOODNESS | |
| The default wordpress head is | |
| a mess. Let's clean it up by | |
| removing all the junk we don't | |
| need. | |
| *********************/ | |
| function bones_head_cleanup() { | |
| // category feeds |
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
| #!/usr/bin/env bash | |
| #---------------------------------------------------- | |
| # Minimal installation of LAMP on Vagrant box on up! | |
| #---------------------------------------------------- | |
| apt-get update | |
| apt-get install -y apache2 vim mc htop bmon git curl iftop | |
| apt-get install -y php5 php5-mcrypt | |
| apt-get install -y mysql-server php5-mysql | |
| #---------------------------------------------------- | |
| # Create a sylink for batcave :) (Vagrant Home/Shared Folder) to /var/www |
| # --------------------------- | |
| # Autor: giovani Oliveira | |
| # Data: 20-10-2016. | |
| #------------------------------------------------------- | |
| # Enable aliases to be sudo’ed | |
| #------------------------------------------------------- | |
| alias sudo='sudo ' | |
| #------------------------------------------------------- |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| #Suporte ao Git: | |
| source ~/.git-completion.bash #https://github.com/git/git/blob/master/contrib/completion/git-completion.bash | |
| source ~/.git-prompt.sh #https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return |
| // Macro | |
| HTML::macro('table', function($fields = array(), $data = array(), $resource, $showEdit = true, $showDelete = true, $showView = true){ | |
| $table = '<table class="table table-bordered">'; | |
| $table .='<tr>'; | |
| if ($showEdit || $showDelete || $showView ) | |
| $table .= '<th></th>'; | |
| foreach ($fields as $field) | |
| { | |
| $table .= '<th>' . Str::title($field) . '</th>'; |
A Pen by Giovani Oliveira on CodePen.