Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Adding @dd() directive in blade #632

Closed
akaamitgupta opened this issue Jun 9, 2017 · 2 comments
Closed

Adding @dd() directive in blade #632

akaamitgupta opened this issue Jun 9, 2017 · 2 comments

Comments

@akaamitgupta
Copy link

akaamitgupta commented Jun 9, 2017

Blade::directive('dd', function ($expression) {
    return "<?php dd({$expression}); ?>";
});

Use it in blade file as:

@dd($user)

@m1guelpf
Copy link

m1guelpf commented Jun 9, 2017

See #590

@akaamitgupta
Copy link
Author

@m1guelpf Didn't notice. Closing this one... :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants