app/Http/Controllers/CustomLogger.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $date = date('Y-m-d H:i:s');
        $alltodo=Todo::where([
            ['status','completed'],
            ['updated_at','<=','estimated_delivery_time']
        ])->get();
        Storage::put($date.'.log', $alltodo);
        return json_encode(['code'=>200,'responce'=>'Details Logged Successfully']);
    }
public function index ( ) { $ date = date ( 'Y-m-d H:i:s' ) ; $ alltodo = Todo :: where ( [ [ 'status' , 'completed' ] , [ 'updated_at' , '<=' , 'estimated_delivery_time' ] ] ) -> get ( ) ; Storage :: put ( $ date . '.log' , $ alltodo ) ; return json_encode ( [ 'code' => 200 , 'responce' => 'Details Logged Successfully' ] ) ; }
Display a listing of the resource.
Display a listing of the resource .