Skip to content

started with laravel 5

Jason Leung edited this page Sep 4, 2015 · 8 revisions

Install

Add this package to composer.json and run composer update if you haven't already done do.

composer -vvv update

Go to /config/app.php, In providers, add:

Madcoda\Youtube\YoutubeServiceProviderLaravel5::class,

In aliases, add:

'Youtube'   => Madcoda\Youtube\Facades\Youtube::class,

Config

In the command line, please run

php artisan vendor:publish

In your app/config/youtube.php, you should fill in your api key

<?php

return array(

	/*
	 *  You can set the API Key here
	 */

	'key' => 'ABCDEFGHIJKLMNOPQabcdefghijklmnopq'

);
Clone this wiki locally