Coder Social home page Coder Social logo

cli-laravel's Introduction

Readme

LARAVEL

Configurações iniciais do Laravel

Iniciando servidor Laravel

php artisan serve

Artisan console help

Mostra informações especificas do comando informado

php artisan help [make:controller]

Controller

Criando um controller

php artisan make:controller [ExemploController]

Com métodos básicos

php artisan make:controller [ExemploController] --resource

Model

Criar modelo no singular

php artisan make:model [Exemplo]

Criar modelo no sigular + migration no plural

php artisan make:model [Exemplo] -m

Migration

Criar migration no plural

php artisan make:migration [create_exemplos_table]

Informa ao Laravel que esta sendo criado uma tabela

php artisan make:migration [create_exemplos_table] --create=exemplos

Criando uma tabela no banco de dados com migration

php artisan migrate

Resetando banco de dados com migrate

php artisan migrate:reset

Reverter e migrar seeder em um único comando

php artisan migrate:fresh --seed

Reverter step especificos

php artisan migrate:rollback --step=1

Seeder

Criando uma classe Seeder

php artisan make:seed [UsersTableSeeder]

Iserindo no banco de dados com Seeder

php artisan db:seed
php artisan db:seed --class=UsersTableSeeder

Limpar views compiladas do cache

php artisan view:clear

Referências

Wakatime

Tempo gasto no IDE para este repositório, rastreado automaticamente com wakatime .

wakatime

Autor

Made with 💙 by JUNIOR LIMA 👋 See my LinkedIn • GitHub @JuniorLima22

↑ voltar para o topo ↑

cli-laravel's People

Contributors

juniorlima22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.