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();

date_format

コピーしました

copy


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

改行 nl2br

コピーしました

copy

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