Giter Site home page Giter Site logo

laravel_practice's Introduction

學習PHP Laravel紀錄

Language, Package Management, and IDE

Laravel

  • Step 1
composer create-project --prefer-dist laravel/laravel projectname "6.0.*"
  • Step 2 開啟開發環境網頁伺服器
cd projectname
php artisan serve
  • Step 3 Ubike API
php artisan make:model Ubike -c
## app/Http/Controller/UbikeController.php
  • Step 4 User API 待補

  • Step 5 自動產生API文件

 ## 安裝套件
composer require --dev mpociot/laravel-apidoc-generator
## 配置檔案
php artisan vendor:publish --provider="Mpociot\ApiDoc\ApiDocGeneratorServiceProvider" --tag=apidoc-config
## 產生API 文件
php artisan apidoc:generate

API

  • User

    • Register

      • restful method: post
    • Login

      • restful method: post
    • Logout

      • restful method: get
    • Userinfo

      • restful method: get
    • Update

      • restful method: put
    • Delete

      • restful method: delete
  • Ubike

    • All

      • restful method: get
    • Alone

      • restful method: get

Reference

laravel_practice's People

Contributors

raysin8411 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.