View Optional.php
<?php
namespace App\Support;
class Optional
{
/**
* The target being transformed.
* Use _ prefix to avoid namespace conflict on __get()
*
View Data_dot_data_has.php
<?php
// app/helpers.php
// Why don't you let us order files, Gist?
use Illuminate\Support\Arr;
if (!function_exists('data_dot')) {
/**
* Flatten a multi-dimensional object with dots.