Skip to content

Instantly share code, notes, and snippets.

@maxwellimpact
Last active April 6, 2020 17:21
Show Gist options
  • Save maxwellimpact/8a5b12ac61120874b85a4af38f262b4f to your computer and use it in GitHub Desktop.
Save maxwellimpact/8a5b12ac61120874b85a4af38f262b4f to your computer and use it in GitHub Desktop.
<?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'];
<?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