Note: If you are installing the script for the first time you don't need to apply this update.
Important: We are not going to update your application, ever time a new update is released. You have to update it yourself own. So keep the backup copy always.
Use files from main.zip for this update
Delete these files and folders
app/artvenue ( folder )
app/controller ( folder )
app/database ( folder )
app/models ( folder )
app/views ( folder )
app/routes.php ( file )
vendor ( folder )
public/static ( folder )
Replace all these folder with the new one from Main.zip
In short you have to delete these folder and replace with new one
Visit app/config/app.php open the file in the text editor. Search for
'Thapp\JitImage\JitImageServiceProvider'
You will find this at about line no 113.
Add this line just below this don't forget the , comma in the end
'Artdarek\OAuth\OAuthServiceProvider',
It will look something like this
'Thapp\JitImage\JitImageServiceProvider', ( comma in the end )
'Artdarek\OAuth\OAuthServiceProvider', ( comma in the end )
Again Search for in same file ( that is app.php )
'JitImage' => 'Thapp\JitImage\Facades\JitImage',
Add this line just below this don't forget the , comma in the end
'OAuth' => 'Artdarek\OAuth\Facade\OAuth',
It will look something like this
'JitImage' => 'Thapp\JitImage\Facades\JitImage',
'OAuth' => 'Artdarek\OAuth\Facade\OAuth',
Note: You can take further reference from the files in main.zip
Go to app/config/packages
Add artdarek folder from main.zip to it ( you will find this folder in app/config/artdarek )
Go inside the folder open config.php and provide your facebook and google api key.
( To know more about google and facebook api , follow our other docs. ).
Open app/routes.php
and add this code to it.
Route::get('update',function(){
Schema::table('users', function($table)
{
$table->bigInteger('gid')->nullable();
});
Artisan::call('migrate');
return 'Success';
});
Visit http://yoursite.com/update you will a success message after that remove this code
app\config\packages\artdarek\oauth-4-laravel\config.php
All files that are modified or added is provide in files to replace folder