Todos os links abaixo contem conteudo em texto e video para estudo do framework Laravel, aproveite com moderação.
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
| <template> | |
| <ul class="pagination"> | |
| <li v-show="current_page != 1"> | |
| <a href="javascript:;" | |
| aria-label="Previous" | |
| v-on:click="previousPage()"> | |
| <span aria-hidden="true">«</span> | |
| </a> | |
| </li> | |
| <li v-for="page in total_pages" |
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\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Faker\Generator as FakerGenerator; | |
| use Faker\Factory as FakerFactory; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
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; | |
| use DB; | |
| 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 App\User; | |
| use Artesaos\Defender\Role; | |
| use Illuminate\Database\Seeder; | |
| use Faker\Factory as FactoryFaker; | |
| class UserTableSeeder extends Seeder | |
| { |
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\Support\Collection; | |
| use Illuminate\Database\Seeder; | |
| class DefenderSeeder extends Seeder | |
| { | |
| /** | |
| * @var Collection; | |
| */ |
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 App\User; | |
| use Illuminate\Database\Seeder; | |
| class UserTableSeeder extends Seeder | |
| { | |
| public function run() | |
| { | |
| // Apaga toda a tabela de usuários |
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 | |
| SEOMeta::setTitle('Página Inicial'); | |
| SEOMeta::setDescription('Esta é a descrição da minha página'); | |
| OpenGraph::setDescription('Esta é a descrição da minha página'); | |
| OpenGraph::setTitle('Página Inicial'); | |
| OpenGraph::setUrl('http://exemplo.url.com'); | |
| OpenGraph::addProperty('type', 'articles'); |
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 | |
| $route = Route::getFacadeRoot(); ## \Illuminate\Routing\Router | |
| $route = app('router'); ## \Illuminate\Routing\Router | |
| $route->get(); | |
| ####################################### | |
| use Illuminate\Http\Request; |
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 Artesaos\SEOTools\Facades; | |
| use Illuminate\Support\Facades\Facade; | |
| class SEOMeta extends Facade | |
| { | |
| protected static function getFacadeAccessor() | |
| { | |
| return 'seotools.metatags'; | |
| } | |
| } |