LaravelPackages.net
Acme Inc.
Toggle sidebar
mass6/laravel-die-dump-array

Helper function to die and dump Laravel collection to their array representation

165
0
1.0.2
About mass6/laravel-die-dump-array

mass6/laravel-die-dump-array is a Laravel package for helper function to die and dump laravel collection to their array representation. It currently has 0 GitHub stars and 165 downloads on Packagist (latest version 1.0.2). Install it with composer require mass6/laravel-die-dump-array. Discover more Laravel packages by mass6 or browse all Laravel packages to compare alternatives.

Last updated

Laravel Die and Dump to Array (dda)

Latest Version on Packagist Total Downloads

Helper function to die and dump Laravel collection to their array representation. When you want to dump an Eloquent model, and only want the model's attributes, the dda function will call the toArray() method on the model, then die and dump. Works with any class that implements the toArray method.

Installation

You can install the package via composer:

composer require mass6/laravel-die-dump-array

Usage

$user = User::find(1);
dda($user);

// Example output:
[
  'name' => 'Luca Brasi',
  'email' => '[email protected]'
]

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

PHP Package Boilerplate

This package was generated using the PHP Package Boilerplate by Beyond Code.

Comments