app/Http/Resources/Bulan/BulanCollection.php
/**
     * Transform the resource collection into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
Transform the resource collection into an array.
@param  \Illuminate\Http\Request  $request
@return array
Transform the resource collection into an array . @param \ Illuminate \ Http \ Request $request @return array
public function toArray($request)
    {
        return [
            'status' => 'success',
            'message' => 'data berhasil ditampilkan',
            'data' => BulanResource::collection($this->collection),
        ];
    }
public function toArray ( $ request ) { return [ 'status' => 'success' , 'message' => 'data berhasil ditampilkan' , 'data' => BulanResource :: collection ( $ this -> collection ) , ] ; }
Transform the resource collection into an array.
Transform the resource collection into an array .