Skip to content

Commit

Permalink
Uplaod Path Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavikhatal committed Nov 22, 2016
1 parent 0cc9fb1 commit 284f0f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Helpers/LAHelper.php
Expand Up @@ -196,7 +196,7 @@ public static function gen_password($chars_min=6, $chars_max=8, $use_upper_case=

// LAHelper::img($upload_id);
public static function img($upload_id) {
$upload = \App\Upload::find($upload_id);
$upload = \App\Models\Upload::find($upload_id);
if(isset($upload->id)) {
return url("files/".$upload->hash.DIRECTORY_SEPARATOR.$upload->name);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Installs/app/Models/User.php
Expand Up @@ -49,6 +49,6 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
*/
public function uploads()
{
return $this->hasMany('App\Upload');
return $this->hasMany('App\Models\Upload');
}
}
2 changes: 1 addition & 1 deletion src/Installs/app/Models/User5.3.php
Expand Up @@ -50,6 +50,6 @@ class User extends Authenticatable implements AuthorizableContract, CanResetPass
*/
public function uploads()
{
return $this->hasMany('App\Upload');
return $this->hasMany('App\Models\Upload');
}
}

0 comments on commit 284f0f4

Please sign in to comment.