Skip to content

Commit

Permalink
Laravel >= 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Pharaonic committed Oct 31, 2020
1 parent b1ad917 commit 007ce42
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<p align="center"><a href="https://pharaonic.io" target="_blank"><img src="https://raw.githubusercontent.com/Pharaonic/logos/main/has-images.jpg" width="470"></a></p>

<p align="center">
<a href="https://packagist.org/packages/Pharaonic/laravel-has-images"><img src="https://poser.pugx.org/pharaonic/laravel-has-images/v/stable" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/Pharaonic/laravel-has-images"><img src="https://img.shields.io/packagist/dt/Pharaonic/laravel-has-images" alt="Total Downloads"></a> <a href="https://packagist.org/packages/Pharaonic/laravel-has-images"><img src="https://img.shields.io/packagist/l/Pharaonic/laravel-has-images" alt="License"></a>
<a href="https://github.com/Pharaonic/laravel-has-images" target="_blank"><img src="http://img.shields.io/badge/source-pharaonic/laravel--has--images-blue.svg?style=flat-square" alt="Source"></a> <a href="https://packagist.org/packages/pharaonic/laravel-has-images" target="_blank"><img src="https://img.shields.io/packagist/v/pharaonic/laravel-has-images?style=flat-square" alt="Packagist Version"></a><br>
<a href="https://laravel.com" target="_blank"><img src="https://img.shields.io/badge/Laravel->=6.0-red.svg?style=flat-square" alt="Laravel"></a> <img src="https://img.shields.io/packagist/dt/pharaonic/laravel-has-images?style=flat-square" alt="Packagist Downloads"> <img src="http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="Source">
</p>


Expand Down
7 changes: 7 additions & 0 deletions src/HasImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
use Exception;
use Illuminate\Http\UploadedFile;

/**
* Has Images Trait
*
* @version 1.0
* @author Raggi <support@pharaonic.io>
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
trait HasImages
{
/**
Expand Down
10 changes: 7 additions & 3 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

namespace Pharaonic\Laravel\Images;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Pharaonic\Laravel\Uploader\Upload;

/**
* Image Model
*
* @version 1.0
* @author Raggi <support@pharaonic.io>
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
class Image extends Model
{
use HasFactory;

/**
* Fillable Columns
*
Expand Down

0 comments on commit 007ce42

Please sign in to comment.