inner join

copy

DB::table('owners')-> join('books', 'owners.id', '=', 'books.owner_id') -> get():

left join

copy

DB::table('owners')-> leftjoin('books', 'owners.id', '=', 'books.owner_id') -> get();

.htaccess http->https

copy

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

jQuery 基本構文

コピーしました

copy

$(function() {
  //ここにDOM要素読み込み後のメイン処理を記述
});

date_format

コピーしました

copy


@foreach($articles as $article)
  {{$article->created_at->format('Y年m月d日')}}
@endforeach

改行 nl2br

コピーしました

copy

{!! nl2br(e($data->title)) !!}