Update Guide

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.

What's New

How to update

Use files from main.zip for this update

1. Login to your FTP account

2. Deleting and replacing some files and folder

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

3. Updating app/config/app.php

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

4. Adding Facebook - Google config folder

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. ).

5. Updating database

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

6. You are done.

Note: Facebook and Google api keys are now moved to new location app\config\packages\artdarek\oauth-4-laravel\config.php

List of files modified.

All files that are modified or added is provide in files to replace folder

Some tips