Last active
April 6, 2020 17:21
-
-
Save maxwellimpact/8a5b12ac61120874b85a4af38f262b4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Hit CTRL+R to rerun the code | |
// NOTE: Only the last line gets output to the right panel | |
$sampleData = ['Eddie', 'Gerda', 'Winston', 'Brannon', null, '']; | |
// HINT: https://laravel.com/docs/7.x/collections#available-methods | |
$collection = collect($sampleData); | |
// TODO: Get these to equal | |
$collection->toArray() === ['eddie', 'gerda', 'winston', 'brannon']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TinkerwellController { | |
public function index() { | |
// TODO: Get this app name to show up on our page | |
// HINT: https://laravel.com/docs/7.x/views#creating-views | |
$appName = "PHP 101"; | |
return view('__tinker__::tinkerwell'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment