Update id efab83f
Note: Before updating make sure to create a backup of your database and site. You can also try update at your localhost first to avoid errors on live site.
composer.json
app/config/app.php
app/config/packages/thapp/jitimage/config.php // file is added
app/controllers/admin/users/UpdateController.php
app/controllers/CommentsController.php
app/controllers/NewsController.php
app/controllers/QuestionsController.php
app/controllers/ReplyController.php
app/controllers/UsersController.php
app/database/migrations/2014_07_05_185734_create_comments_vote_table.php // file is added
app/database/migrations/2014_07_06_104659_create_reply_votes_table.php // file is added
app/hackersnews/Mailer/Mailer.php
app/hackersnews/Repository/Eloquent/CommentsRepository.php
app/hackersnews/Repository/Eloquent/ReplyRepository.php
app/hackersnews/Repository/ReplyRepositoryInterface.php
app/hackersnews/Validator/UsersValidator.php
app/lang/en/text.php
app/library/functions.php
app/library/smilies.php
app/models/Comment.php
app/models/CommentsVotes.php // file is added
app/models/Reply.php
app/models/ReplyVotes.php // file is added
app/routes.php
app/views/user/notifications.blade.php
app/views/admin/users/edit.blade.php
app/views/post/comments.blade.php
app/views/post/extra/social-share.blade.php
app/views/post/list.blade.php
app/views/post/post.blade.php
app/views/user/settings.blade.php
app/views/user/user.blade.php
public/avatars/user.jpg // file + folder is added
public/static/css/style.css
public/static/js/custom.js
Make sure that you have created backup before update
Delete and replace vendors
folder from main.zip
.
Either replace files one by one from above list or directly replace these folders.
app/views
app/controllers
app/hackersnews
app/models
app/database
app/config/packages/thapp
app/lang
app/library
public/static
Open app/config/app.php file add 'Thapp\JitImage\JitImageServiceProvider',
just after
'Hackersnews\Providers\RepositoryServiceProvider',
It will look something like this
'Hackersnews\Providers\RepositoryServiceProvider',
'Thapp\JitImage\JitImageServiceProvider',
Also add add 'JitImage' => 'Thapp\JitImage\Facades\JitImage'
just after
'Purifier' => 'Mews\Purifier\Facades\Purifier',
It will look something like this
'Purifier' => 'Mews\Purifier\Facades\Purifier',
'JitImage' => 'Thapp\JitImage\Facades\JitImage'
Now open app/routes.php
file and paste the below code in it.
Route::get('update',function(){
Schema::table('users', function($table)
{
$table->string('avatar')->nullable()->after('fullname');
});
Artisan::call('migrate', array('--force' => true));
return 'Updated';
});
Visit yoursite.com/update
.
Remove the code after update.