24 行
559 B
PHP
24 行
559 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
use Illuminate\Http\Request;
|
|
use App\Models\MeetingApprovals;
|
|
|
|
class NoticeIncomplete
|
|
{
|
|
/**
|
|
* 未完了ミーティング通知(親向け)
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle(Request $request, Closure $next)
|
|
{
|
|
$request->count = MeetingApprovals::where('father_id', session()->get('fathers')['id'])->whereNull('approval_at')->count();
|
|
return $next($request);
|
|
}
|
|
}
|