Upgrade to Pro — share decks privately, control downloads, hide ads and more …

about Laravel 5.3

localdisk
September 12, 2016

about Laravel 5.3

Laravel Meetup Vol.8 で話したスライドです。

localdisk

September 12, 2016
Tweet

More Decks by localdisk

Other Decks in Technology

Transcript

  1. • New Feature5.3 • SimplePagination • Notification • Upgrade •

    Auth • MySQL strict Mode • Upgrade͢΂͖͔? Agenda
  2. // Blade͕ࢦఆͰ͖ΔΑ͏ʹͳͬͨʂ {{ $users->links(‘pagination::bootstrap-4’) }} ΧελϚΠζ php artisan vendor:publish --tag=laravel-pagination

    • bootstrap-4.blade.php • default.blade.php • simple-bootstrap-4.blade.php • simple-default.blade.php Pagination customize is
  3. • $paginator • Illuminate\Pagination\Paginator • hasPages - ϖʔδ͕͋Δ͔? • onFirstPage

    - ࠷ॳͷϖʔδ • previousPageUrl - લͷϖʔδ • nextPageUrl - ࣍ͷϖʔδ • hasMorePages - ࣍ͷϖʔδ͕͋Δ͔ Pagination Ͱ࢖͏ϝιου
  4. • ඪ४Ͱ༻ҙ͞Ε͍ͯΔ௨஌ • Mail • Database • SMS • Slack

    • Laravel Notification Channels • http://laravel-notification-channels.com/ Notification
  5. • ௨஌ΫϥεΛ࡞੒͢Δ(make:notification) • ௨஌ର৅ͷΫϥεʹ Notifiable traitΛuse͢Δ class User { use

    Notifiable; } $user->notify(new UserRegisterd); • Event΍ExceptionHandlerͱซ༻͢Δ Notification
  6. • ݁ߏมΘͬͯΔ • Route • logout͕POSTʹͳͬͨΓ • 5.3ҎલͷAuthΛ࢖ͬͯΔ৔߹͸मਖ਼͕ඞཁ • Route::get('/logout',

    ‘Auth\LoginController@logout'); • ύεϫʔυϦηοτʹNotification͕࢖༻͞Ε ͯͨΓ • https://laravel.com/docs/5.3/upgrade Auth