Giter Club home page Giter Club logo

laravelcdn's People

Contributors

alexx876 avatar duxthefux avatar khoubeib-zembra avatar markokeeffe avatar mul14 avatar nyxsoftwaresystems avatar publiux avatar samdoidge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravelcdn's Issues

CDN not working as expected

Hi Guys,

Just want to start by saying that you've made a great package here!

So here is the issue, we are running on laravel 5.5/nginx, using AWS ELB and deploy via jenkins/AWS CodeDeploy, and during the build we run npm production and php artisan Cdn:push.

Everything was working as expected as of Friday which is when ran our last test of the week. We came in Monday, and we are suddenly not able pull from CD when our env=production. The files do indeed build and update on cdn so we know its not associated to S3, it appears to be package related.

We tested everything, looked over our code 10x, nothing stands out and all looks in place. However I did notice you guys made some commits, so I am wondering what may have changed and was it documented yet?

We could really use your help resolving this before our deploy today, as we would hate to pull assets from our server if we can avoid it.

Thanks in advance!

Best,

-V

Better testing

I don't believe mocking everything in the tests really flexes the package.

As an enchantment, I propose that integration tests should be used to:

  1. Push files from a test/stubs directory to an AWS bucket and assert this has happened
  2. Push again and assert that no new files were uploaded as they already exist
  3. Delete files from AWS and assert the bucket is empty

Using TravisCI we should be able to store the credentials of the bucket as environment variables to stop people from using the bucket for malicious purposes.

Embedding CSS/SCSS images has no /public/ in the link

Hello,

I have a problem with embedding an image in CSS/SCSS, which should be on the CDN later, but after the compiling the /public/ is missing in the class when linking and therefore it cannot find it on the S3 server. Because the image is integrated as follows:

.flag-icon-en {
background-image: url(/images/flags/4x3/en.svg);
}

but it should:

.flag-icon-en {
background-image: url(/public/images/flags/4x3/en.svg);
}

Anybody got a fix? Because you can't just remove the "/public/" folder, so that the CDN is only /images/, /css/, /js/ as I saw it, is the Public folder hardgecoded correct?

upload folder in mix url

Hi there,
thanks for great repo.
when uploading files, it uploads to my prefered folder mentioned in AWS_CDN_ASSET_UPLOAD_FOLDER variable.
is it possible to use "AWS_CDN_ASSET_UPLOAD_FOLDER" folder when using Cdn::mix('some_file_path').
Cdn::mix always returns path without upload folder path.

Thanks in advance.

Laravel 6.0 Support

Hey guys, this package is not working for 6.0.0:

  • publiux/laravelcdn 2.0.0 requires illuminate/config 5.0.|5.1.|5.2.|5.3.|5.4.|5.5. -> satisfiable by laravel/framework[5.3.x-dev, 5.4.x-dev, 5.5.x-dev], illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].

Thanks,
G

Laravel 8 support

Hi there,

Thanks for the package. Any plans for supporting Laravel 8?

Wrong paths on S3 after composer update

Hello,

After updating composer, keys of files on S3 are wrong. It's taking absolute path instead of relative. i.e. instead of making public folder in my bucket as root folder, it's creating var as root folder. Full path of files are like /var/www/app/public/css/app.css instead of public/css/app.css.

Issue started happening after Symfony/finder got updated to 3.4.7 from 3.4.6.

After little debugging, I found that $file->getPathName() returns absolute path after updating.

Comparison between S3 and local files is not working

It might be just with me, but when running the command:

php artisan cdn:push

All files are being pushed to S3, including the ones that haven't been modified. Running the command twice pushes all files twice.

I checked the S3 documentation and the cause might be how they define the "Last Modified" date, which is one of the parameters used to compare the files, together with the size. They define it as:

Last-Modified - Object creation date or the last modified date, whichever is the latest.

It seems like they mean the creation time on the bucket, not of the original file. This would take priority over the last modified date as it is the latest and the comparison function would always fail.

Am I doing something wrong? If so, can anybody point out what?

Thank you very much

Your requirements could not be resolved to an installable set of packages

When I want to install the package it throws this error

 Problem 1
    - Conclusion: remove laravel/framework v5.8.15
    - Conclusion: don't install laravel/framework v5.8.15
    - publiux/laravelcdn 2.0.0 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25,
v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43,
v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].
    - publiux/laravelcdn 2.0.1 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25,
v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43,
v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].
    - publiux/laravelcdn 2.0.2 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25,
v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43,
v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].
    - publiux/laravelcdn 2.0.3 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25,
v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43,
v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].
    - publiux/laravelcdn v2.0.4 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].
    - publiux/laravelcdn v2.0.5 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44].
    - publiux/laravelcdn v2.0.6 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev,
5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20,
v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32,
v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - publiux/laravelcdn v2.0.7 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev,
5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20,
v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32,
v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
    - publiux/laravelcdn v2.0.8 requires illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.* -> satisfiable by illuminate/config[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
    - don't install illuminate/config 5.0.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.1.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.2.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.3.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.4.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.5.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.22|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.25|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.26|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.28|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.33|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.0.4|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.1|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.13|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.16|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.2|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.20|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.22|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.25|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.28|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.30|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.31|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.41|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.6|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.1.8|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.19|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.21|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.24|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.25|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.26|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.27|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.28|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.31|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.32|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.37|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.43|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.45|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.6|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.2.7|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.3.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.3.16|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.3.23|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.3.4|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.13|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.17|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.19|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.27|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.36|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.4.9|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.16|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.17|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.2|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.28|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.33|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.34|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.35|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.36|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.37|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.39|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.40|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.41|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.43|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.5.44|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.6.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.1|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.10|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.11|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.12|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.13|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.14|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.15|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.16|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.17|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.19|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.2|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.20|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.21|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.22|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.23|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.24|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.25|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.26|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.27|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.28|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.29|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.3|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.30|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.31|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.32|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.33|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.34|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.35|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.36|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.37|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.38|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.39|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.4|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.5|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.6|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.7|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.8|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.6.9|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.7.17|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.7.18|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.7.19|don't install laravel/framework v5.8.15
    - don't install illuminate/config 5.7.x-dev|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.0|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.1|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.10|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.11|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.15|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.2|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.20|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.21|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.22|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.23|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.26|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.27|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.28|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.3|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.4|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.5|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.6|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.7|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.8|don't install laravel/framework v5.8.15
    - don't install illuminate/config v5.7.9|don't install laravel/framework v5.8.15
    - Installation request for laravel/framework (locked at v5.8.15, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.15].
    - Installation request for publiux/laravelcdn ~2.0 -> satisfiable by publiux/laravelcdn[2.0.0, 2.0.1, 2.0.2, 2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8].

Unable to composer require

Hello,

Whenever I try to install this package, I get the following error

Loading composer repositories with package information
Updating dependencies (including require-dev)

  • Installing publiux/laravelcdn (2.0.0)
    Loading from cache

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize

[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Publiux\laravelcdn\CDNServiceProvider' not found

Script php artisan optimize handling the post-update-cmd event returned with an error

[RuntimeException]
Error Output:

I am using Laravel 5.5 Please help!

Regards,
Ajitem

Comparing local files and bucket..

the same configuration work fine on Mac but never work in ubuntu 16.04

Comparing local files and bucket...

Aws\Exception\CredentialsException : Error retrieving credentials from the instance profile metadata server. (Client error: GET http://169.254.169.254/latest/meta-data/iam/security-credentials/ resulted in a 404 Not Found response:
not found
)

at /var/www/html/gdf/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php:88
84| return (string) $response->getBody();
85| })->otherwise(function (array $reason) {
86| $reason = $reason['exception'];
87| $msg = $reason->getMessage();

88| throw new CredentialsException(
89| $this->createErrorMessage($msg)
90| );
91| });
92| }

Exception trace:

1 Aws\Credentials\InstanceProfileProvider::Aws\Credentials{closure}(Object(GuzzleHttp\Exception\ClientException))
/var/www/html/gdf/vendor/guzzlehttp/promises/src/Promise.php:203

2 GuzzleHttp\Promise\Promise::callHandler([Object(GuzzleHttp\Exception\ClientException), Object(GuzzleHttp\Psr7\Response)])
/var/www/html/gdf/vendor/guzzlehttp/promises/src/Promise.php:156

Please use the argument -v to see more details.

issue with displaying Images in blade file

Hello ,
I am trying to use CDN::asset() but I am getting issue Undefined index: scheme for this method . I have added cdn url in env file . Please suggest best solution

Cdn::mix and bypass=true results in double //

I recently switch from Laravel Elixir to Mix, and noticed an issue with double slashes in my dev environment when I use Cdn::mix. I didn't have that problem before with Cdn::elixir

Since this is my dev environment Cdn's bypass option is true. So I'm trying to load assets locally.

The HTML with double slashes:

<link rel="stylesheet" href="http://localhost:8000//css/app.css">
<script src="http://localhost:8000//js/app.js"></script>

From default.blade.php

<link rel="stylesheet" href="{{ Cdn::mix('/css/app.css') }}">
<script src="{{ Cdn::mix('/js/app.js') }}"></script>

mix-manifest.json:

{
    "/js/app.js": "/js/app.js",
    "/css/app.css": "/css/app.css"
}

I looked at CdnFacade.php and the generateUrl() function. If I change

return Request::root().'/'.$path;

to

return Request::root().''.$path;

the double slash turns into a single slash, and my css and js loads again. But this might have other consequenses.

Class 'Cdn' not found

Hi,

When trying to call Cdn::path() I have this problem at view

Class 'Cdn' not found

Laravel 5.4
Homestead

Cant run php artisan vendor:publish

Hi,

i am using laravel 5.2.2, i installed laravelcdn, but i when i run php artisan vendor:publish nothing happens, when i run php artisan cdn:push i have:

[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "cdn" namespace.

I looked at the Kernel.php and nothing has changed too.

CDN config file cdn.php not found

I am following up your documentation and when i try to reload it gives me this error. I have followed a resolving for an earlier issue but i haven't got it fixed.I don't have a config file called cdn.php.I declared everything in app.php.Do i have to make a configuration file?

ErrorException thrown with message "CDN 'config file' (cdn.php) not found (View: C:\xampp\htdocs\carbay\resources\views\index.blade.php)"

How can I test without effecting prod, and refactoring everything? Prefix?

Hey,
Reading through your config.php I'm curious if the 'Bucket Upload Folder Prefix' can resolve my issue? If I set the AWS_CDN_ASSET_UPLOAD_FOLDER env var pointing to a separate dir 'temp-dir/', instead of my prod 'public/', for testing remote files locally. Would this work? Trying to avoid touching my prod CDN and not have to refactor my code to dynamically point to a separate bucket altogether, I have had trouble with this approach.

Can you tell me more about how to leverage AWS_CDN_ASSET_UPLOAD_FOLDER?

Thanks in advance!
-V

Laravel 5.3 compatibility

I'd like to use this with Laravel 5.3 but I'm getting this error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install publiux/laravelcdn v1.0.3
    - Conclusion: don't install publiux/laravelcdn v1.0.2
    - Conclusion: don't install publiux/laravelcdn v1.0.1
    - Conclusion: remove symfony/finder v3.1.4
    - Installation request for publiux/laravelcdn ^1.0 -> satisfiable by publiux/laravelcdn[v1.0.0, v1.0.1, v1.0.2, v1.0.3].
    - Conclusion: don't install symfony/finder v3.1.4
    - publiux/laravelcdn v1.0.0 requires symfony/finder 2.8.*|3.0.* -> satisfiable by symfony/finder[v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9].
    - Can only install one of: symfony/finder[v2.8.0, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.1, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.10, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.11, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.2, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.3, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.4, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.5, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.6, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.7, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.8, v3.1.4].
    - Can only install one of: symfony/finder[v2.8.9, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.0, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.1, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.2, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.3, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.4, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.5, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.6, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.7, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.8, v3.1.4].
    - Can only install one of: symfony/finder[v3.0.9, v3.1.4].
    - Installation request for symfony/finder (locked at v3.1.4) -> satisfiable by symfony/finder[v3.1.4].


Installation failed, reverting ./composer.json to its original content.

laravel/framework 11 require symfony/finder ^7.0

Hello, @publiux,

There is a dependency issue with Laravel 11 in the publiux/laravelcdn package.
The package publiux/laravelcdn requires symfony/finder version ^5|^6, while Laravel 11 requires v7.0.0.

This is the exact error message:

publiux/laravelcdn dev-master requires symfony/finder ^5|^6 -> found symfony/finder[v5.0.0-BETA1, ... , 5.4.x-dev, v6.0.0-BETA1, ... , 6.4.x-dev] but the package is fixed to v7.0.0 (lock file version) by a partial update and that version does not match. The argument to the update command must specify this version. The argument to the update command must specify this version.

Can you add ^7.0.0 to the dependencies?
Thanks a lot!

Best

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.