Skip to content

Commit a007cb0

Browse files
committed
some tweaks.
1 parent 7422792 commit a007cb0

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

helpers.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -391,38 +391,38 @@ Dump the given variable and end execution of the script.
391391

392392
dd($value);
393393

394-
### value
394+
### elixir
395395

396-
If the given value is a `Closure`, return the value returned by the `Closure`. Otherwise, return the value.
396+
Get the path to a versioned Elixir file.
397397

398-
$value = value(function() { return 'bar'; });
398+
elixir($file);
399399

400-
### with
400+
### env
401401

402-
Return the given object. Useful for method chaining constructors in PHP 5.3.x.
402+
Gets the value of an environment variable or return a default value.
403403

404-
$value = with(new Foo)->doWork();
405-
406-
### view
404+
env('APP_ENV', 'production')
407405

408-
Get the evaluated view contents for the given view.
406+
### event
409407

410-
return view('auth.login');
408+
Fire an event.
411409

412-
### env
410+
event('my.event');
413411

414-
Gets the value of an environment variable. Second parameter is the default string to be returned.
412+
### value
415413

416-
env('APP_ENV', 'production')
414+
If the given value is a `Closure`, return the value returned by the `Closure`. Otherwise, return the value.
417415

418-
### event
416+
$value = value(function() { return 'bar'; });
419417

420-
Fire an event and call the listeners.
418+
### view
421419

422-
event('my.event');
420+
Get a View instance for the given view path.
423421

424-
### elixir
422+
return view('auth.login');
425423

426-
Get the path to a versioned Elixir file.
424+
### with
427425

428-
elixir($file);
426+
Return the given object. Useful for method chaining constructors in PHP 5.3.x.
427+
428+
$value = with(new Foo)->doWork();

0 commit comments

Comments
 (0)