PHP code example of ahmedkandel / nova-s3-multipart-upload
1. Go to this page and download the library: Download ahmedkandel/nova-s3-multipart-upload library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ahmedkandel / nova-s3-multipart-upload example snippets
use Ahmedkandel\NovaS3MultipartUpload\NovaS3MultipartUpload;
class Post extends Resource
{
public function fields(Request $request)
{
return [
// ...
NovaS3MultipartUpload::make('Video'),
];
}
}
class Post extends Model
{
protected $fillable = ['video'];
}
class Post extends Model
{
protected $casts = [
'videos' => 'array',
];
}