# GoStock – Free Stock Photos Script v1.5

Updated: 15, November 2018

## Changelog

- Fixed
- Social Login
- Removing photos
- HTML characters in comments
- Added
- Upgrade to Laravel 5.7
- `MustVerifyEmail` in User model
- Added search form on the search page
- Changed
- Validation images dimensions

## Affected files

- `app`
- SocialAccountService.php
- `app / Models`
- User.php

    use Laravel\Cashier\Billable;
    use Illuminate\Notifications\Notifiable;
    use Illuminate\Contracts\Auth\MustVerifyEmail;
    use Illuminate\Foundation\Auth\User as Authenticatable;
    use App\Notifications\ResetPassword as ResetPasswordNotification;

    class User extends Authenticatable
    {
    	use Notifiable, Billable;

- `app / Http / Controllers`
- SocialAuthController.php
- AdminController.php

    'thumbnail' => 'mimes:jpg,gif,png,jpe,jpeg|dimensions:min_width=457,min_height=359',

    'thumbnail' => 'mimes:jpg,gif,png,jpe,jpeg|dimensions:min_width=457,min_height=359',

    // Collections Images
    $collectionsImages = CollectionsImages::where('images_id', '=', $request->id)->get();
     if( isset( $collectionsImages ) ){
        foreach($collectionsImages as $collectionsImage){
          $collectionsImage->delete();
        }
      }

      // Images Reported
      $imagesReporteds = ImagesReported::where('image_id', '=', $request->id)->get();
       if( isset( $imagesReporteds ) ){
          foreach($imagesReporteds as $imagesReported){
            $imagesReported->delete();
          }
        }

- CommentsController.php

    $sql->reply = trim(Helper::checkTextDb($request->comment));

    <p class="comments-p mentions-links">'.Helper::checkText($sql->reply).'</p>

- ImagesController.php

    'photo'=>'required|mimes:jpg,gif,png,jpe,jpeg|dimensions:min_width='.$dimensions[0].',min_height='.$dimensions[1].'|max:'.$this->settings->file_size_allowed.'',

    // Collections Images
      $collectionsImages = CollectionsImages::where('images_id', '=', $request->id)->get();
       if( isset( $collectionsImages ) ){
          foreach($collectionsImages as $collectionsImage){
            $collectionsImage->delete();
          }
        }

        // Images Reported
        $imagesReporteds = ImagesReported::where('image_id', '=', $request->id)->get();
         if( isset( $imagesReporteds ) ){
            foreach($imagesReporteds as $imagesReported){
              $imagesReported->delete();
            }
          }

- UserController.php

    'photo' => 'required|mimes:jpg,gif,png,jpe,jpeg|dimensions:min_width=180,min_height=180|max:'.$this->settings->file_size_allowed.'',

    'photo' => 'required|mimes:jpg,gif,png,jpe,jpeg|dimensions:min_width=800,min_height=600|max:'.$settings->file_size_allowed.'',

- `resources / lang / en`
- error.php

    /************ Version 1.5 **************/
      	"mail_exists" => 'Error! the email is already in use by another user.',

- `resources / views`

- `default`
- search.blade.php

    <div class="jumbotron md index-header jumbotron_set jumbotron-cover">
      <div class="container wrap-jumbotron position-relative">
        <h1 class="title-site title-sm">{{ trans('misc.search') }}</h1>
        <p class="subtitle-site none-overflow"><strong>"{{$q}}"</strong></p>

        <div class="input-group input-group-lg searchBar">
          <input type="text" autocomplete="off" class="form-control" value="{{$q}}" id="btnItems" placeholder="{{trans('misc.title_search_bar')}}">
          <span class="input-group-btn">
            <button class="btn btn-main btn-flat" type="submit" id="btnSearch">
              <i class="glyphicon glyphicon-search"></i>
            </button>
          </span>
        </div>
      </div>
    </div>

- `includes`
- comments.blade.php

    <p class="comments-p mentions-links">{!! App\Helper::checkText( $comment->reply ) !!}</p>

Any problem or doubt send me an email to miguelvasquez991@gmail.com
Do not forget to visit miguelvasquez.net

Donate Any donation will be well received 😉