davestewart / laravel-sketchpad

An innovative front-end environment for interactive Laravel development
MIT License
296 stars 19 forks source link

Change `code()` helper so that it loads a file #32

Closed davestewart closed 7 years ago

davestewart commented 7 years ago

Having to get file contents separately is cumbersome.

Would be better if it loaded a file, and you could grep a section, or specify start and end lines.

This might need to be class, not a helper.

davestewart commented 7 years ago

Possible API:

Code::method ($class, $name)
Code::file ($name, $lineStart = 0, $lineEnd = 0)
davestewart commented 7 years ago

Closed by 44d1c4b1bf6f305ca9eb4009514f689757de6e46