Create new migration script:
php artisan make:migration add_api_token --table=users
openapi: 3.1.0 | |
info: | |
title: Tasks API | |
description: A simple CRUD API for managing tasks. | |
version: 1.0.0 | |
contact: | |
name: API Support | |
email: support@tasks.com | |
license: | |
name: MIT |
openapi: 3.1.0 | |
info: | |
title: Chirps API | |
description: |- | |
Welcome to the Laravel Bootcamp! In this guide we will walk through building a modern Laravel application from scratch. To explore the framework, we'll build a microblogging platform called Chirper. | |
termsOfService: http://chirps.com/terms/ | |
contact: | |
email: api@chirps.com | |
license: |
{ | |
"quotes": [ | |
{ | |
"quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"}, | |
{ | |
"quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"}, | |
{ | |
"quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"}, | |
{ |
# Directory Listing | |
Options -Indexes | |
<IfModule mod_security.c> | |
# Server Information Disclosure | |
ServerTokens Prod | |
ServerSignature Off | |
SecServerSignature " " | |
</IfModule> |
frontend localnodes
bind *:80
reqadd X-Forwarded-Proto:\ http
# Add CORS headers when Origin header is present
capture request header origin len 128
http-response add-header Access-Control-Allow-Origin %[capture.req.hdr(0)] if { capture.req.hdr(0) -m found }
rspadd Access-Control-Allow-Methods:\ GET,\ HEAD,\ OPTIONS,\ POST,\ PUT if { capture.req.hdr(0) -m found }
rspadd Access-Control-Allow-Credentials:\ true if { capture.req.hdr(0) -m found }
<?php | |
use App\Contracts\Builder; | |
use App\Contracts\Menu; | |
it('runs on PHP 8.3 or above') | |
->expect(phpversion()) | |
->toBeGreaterThanOrEqual('8.3.0'); | |
it('does not use debugging functions') |
This procedure is tested on Mac OS X 10.12.6
PHP 7.2 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
Installing Brew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Installing MSSQL Tools
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
<?php | |
namespace Tests; | |
use Facebook\WebDriver\Chrome\ChromeOptions; | |
use Facebook\WebDriver\Remote\DesiredCapabilities; | |
use Facebook\WebDriver\Remote\RemoteWebDriver; | |
use Laravel\Dusk\TestCase as BaseTestCase; | |
use Illuminate\Contracts\Console\Kernel; |