On the light of the previous tutorial about implement oAuth with laravel 4 ,

the following is explanation to upgrade your code to laravel 5 !

Installation

Add those lines to your composer.json file:

"require": {
	  	"cartalyst/sentry": "dev-feature/laravel-5",
	  	"oriceon/oauth-5-laravel": "dev-master",
	  	"illuminate/html": "~5.0"
	}

Now run ..

php composer.phar dump-autoload && php composer.phar update

There is no official support right now for Sentry in Laravel 5. They state this right on their website. They are working on it however.

Add the following to the autoload section.

"app/Http/Controllers",

After installing, you can publish the package configuration file into your application by running the following command:

php artisan vendor:publish --provider="Cartalyst/Sentry/SentryServiceProvider"

the previous codes is still working perfectly so far , I’d to tell you there none changes on the php code! all you need is move the authentication controller/codes to ‘/app/Http/Controllers/’ folder as the new structure for laravel 5 .

Follow the instructions on the following page to convert your files from 4.2 to 5.0:
http://laravel.com/docs/master/upgrade#upgrade-5.0

Categorized in:

Website Development,