public static function findOrFail($id, $select = ['*'])
    {
        $data = static::find($id, $select);

        if (is_null($data) || count($data) == 0) {
            throw new NotFoundException('No recordings found.');
        }

        return $data;
    }
public static function findOrFail($id, $select = ['*'])
    {
        $data = static::find($id, $select);

        if (is_null($data) || count($data) == 0) {
            throw new NotFoundException('No recordings found.');
        }

        return $data;
    }
public static function findOrFail ( $ id , $ select = [ '*' ] ) { $ data = static :: find ( $ id , $ select ) ; if ( is_null ( $ data ) || count ( $ data ) == 0 ) { throw new NotFoundException ( 'No recordings found.' ) ; } return $ data ; }
Find information by id or throws an
exception in data box not found

@param  mixed          $id
@param  array|callable $select
@return static
@throws NotFoundException
Find information by id or throws an exception in data box not found