argument('tweet'))->afterLast('/')->before('?'); $this->line('Fetching tweet ID ' . $id); $tip = Tip::fromTweet( $tweet = Tweet::fetch($id) ); $tip->slug = $this->ask('Slug', $tip->defaultSlug()); $tip->thread_slug = $this->choice('Thread', Thread::all()->pluck('slug', 'title')->prepend('- None - ', null)->toArray(), null); $tip->save(); $this->info("Successfully saved tip to: content/tips/{$tip->slug}.md"); } }