Todos os links abaixo contem conteudo em texto e video para estudo do framework Laravel, aproveite com moderação.
This file contains 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 | |
$query = MyModel::orderBy('name', 'ASC'); | |
//Sem cache | |
$query->with('relation1','relation2'); | |
//Com Cache | |
$query->with( | |
[ |
This file contains 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 | |
function base64url_encode($data) { | |
return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); | |
} | |
function base64url_decode($data) { | |
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT)); | |
} |
This file contains 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 MyApp\Repository; | |
use MyApp\Category; | |
class CategoryRepository | |
{ | |
/** | |
* @return \Illuminate\Database\Eloquent\Collection|static[] |
#wordpress sidebar widget
section.widget>(header>h2)+div.inner-widget
section.widget>(header>h2)+div.inner-widget+footer
This file contains 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 | |
class WP_CustomPagination | |
{ | |
protected $args = array(); | |
protected $wp_query, $paged, $pages, $range, $showItens, $element = null; | |
public static $argsDefault = array( | |
'before' => '<ul class="pagination %1$s">', | |
'after' => '</ul>', |
This file contains 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
{ | |
"name": "meunome/meutema", | |
"description": "minha descricao", | |
"license": "proprietary", | |
"authors": [{ | |
"name": "Vinicius Reis", | |
"email": "luiz.vinicius73@gmail.com" | |
}], | |
"require": { | |
"potterywp/potter": "dev-master" |
This file contains 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
$image = Input::file('im'); | |
$model = new \Artesaos\Attacher\AttacherModel(); | |
$model->setupFile($image); | |
$model->save(); |
This file contains 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
# app/http/controllers/front | |
<?php namespace App\Http\Controllers\Front; | |
use App\Http\Controllers; | |
abstract class FrontCtrl extends Controllers | |
{ | |
} |
OlderNewer