Blog チュートリアルやるよ
- インストール
- 定番パッケージの導入
- barryvdh/laravel-ide-helper
<?php | |
Route::get('/', function () { | |
if (!Auth::check()) { | |
// ログイン済でなければリダイレクト | |
$url = url('auth/twitter'); | |
$text = 'twitter でログイン'; | |
return 'こんにちは ゲストさん. ' . '<a href="' . $url . '">' . $text . '</a>'; | |
} |
<?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', | |
], | |
]; |
/* {{{ | |
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, |
"============================ | |
" General | |
"============================ | |
" 入力欄に自動フォーカスしない | |
set focuscontent | |
" /,? 検索結果をハイライト | |
set hlsearch | |
" :oなどでの補完候補をサーチエンジン、履歴に限定 |
Blog チュートリアルやるよ
@if (count($errors) > 0) | |
<div class="alert alert-danger alert-block"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<h4>Error</h4> | |
<ul> | |
@foreach($errors->all() as $e) | |
<li>{{ $e }}</li> | |
@endforeach | |
</ul> | |
</div> |
"============================ | |
" General | |
"============================ | |
" 入力欄に自動フォーカスしない | |
set focuscontent | |
" /,? 検索結果をハイライト | |
set hlsearch | |
" :oなどでの補完候補をサーチエンジン、履歴に限定 |
#!/usr/bin/env bash | |
ansible_conf="/home/vagrant/.ansible.cfg" | |
if ! [ `which ansible` ]; then | |
sudo yum -y update | |
sudo yum -y install python-setuptools python-devel | |
sudo yum -y groupinstall "Development Tools" | |
sudo easy_install pip | |
sudo pip install ansible |
{ | |
"name": "laravel/laravel", | |
"description": "The Laravel Framework.", | |
"keywords": ["framework", "laravel"], | |
"license": "MIT", | |
"type": "project", | |
"require": { | |
"laravel/framework": "~5.0", | |
"laravel/socialite": "~2.0" | |
}, |
{ | |
"name": "Laravel Application", | |
"dependencies": { | |
"bootstrap-sass-official": "~3.3.1", | |
"font-awesome": "~4.2.0" | |
} | |
} | |