Blog チュートリアルやるよ
- インストール
- 定番パッケージの導入
- barryvdh/laravel-ide-helper
Blog チュートリアルやるよ
| "============================ | |
| " General | |
| "============================ | |
| " 入力欄に自動フォーカスしない | |
| set focuscontent | |
| " /,? 検索結果をハイライト | |
| set hlsearch | |
| " :oなどでの補完候補をサーチエンジン、履歴に限定 |
| /* {{{ | |
| Copyright (c) 2008, anekos. | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, | |
| this list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |
| <?php | |
| return [ | |
| 'twitter' => [ | |
| 'client_id' => env('TWITTER_CLIENT_ID'), | |
| 'client_secret' => env('TWITTER_CLIENT_SECRET'), | |
| 'redirect' => 'http://127.0.0.1:8000/auth/twitter/callback', | |
| ], | |
| ]; |
| <?php | |
| Route::get('/', function () { | |
| if (!Auth::check()) { | |
| // ログイン済でなければリダイレクト | |
| $url = url('auth/twitter'); | |
| $text = 'twitter でログイン'; | |
| return 'こんにちは ゲストさん. ' . '<a href="' . $url . '">' . $text . '</a>'; | |
| } |
| ### Sample Settings | |
| # aliases | |
| # in this example you can open extensions page by the command ':ext' | |
| # and Chrome's option page by the command ':option' | |
| alias ext TabOpenNew chrome://extensions/ | |
| alias option TabOpenNew chrome://settings/browser | |
| alias downloads TabOpenNew chrome://downloads | |
| alias history TabOpenNew chrome://history |
| <?php | |
| require 'recipe/common.php'; | |
| // Laravel shared dirs | |
| set('shared_dirs', [ | |
| 'storage/app', | |
| 'storage/framework/cache', | |
| 'storage/framework/sessions', | |
| 'storage/framework/views', |
| <!doctype html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>@yield('title', 'default title')</title> | |
| <link rel="stylesheet" href="{{ asset('/css/bootstrap.min.css') }}"> | |
| <link rel="stylesheet" href="{{ asset('/css/bootstrap.theme.min.css') }}"> | |
| @section('css') | |
| @show | |
| </head> |
| @extends('layouts.default') | |
| @section('content') | |
| <h1>Hello</h1> | |
| @stop | |
| @section('button') | |
| <button class="btn btn-primary">bar</button> | |
| @show |
| { | |
| "changed":false, | |
| "failed":true, | |
| "invocation":{ | |
| "module_args":{ | |
| "conf_file":null, | |
| "disable_gpg_check":false, | |
| "disablerepo":null, | |
| "enablerepo":null, | |
| "exclude":null, |