<?php
namespace App\Komma\Notifications;
use Carbon\Carbon;
use App\Komma\Notifications\Notification;
use Illuminate\View\View;
final class NotificationComposer
{
/**
* Bind data to the view.
*
* @param View $view
* @return void
*/
public function compose(View $view)
{
$view->with('notifications', Notification::where('done_at', '<', Carbon::create(1990))->take(10)->get());
}
}