samedi 4 février 2017

Slim Image Cropper With Laravel 5.3

I have recently been picking up Laravel and getting grips with it, I have made a simple site which allows me to make and edit articles - What I am trying to achieve now is to add an image uploader to it.

I have purchased this image cropper which is responsive and is great for mobiles and desktops but when it comes to adding it to my Laravel project I am a bit stuck.

In the download there are a few files many being .js files and some php files, I read that I need to add the Slim.php file in App/ directory which I have done and I have also added the js files including making the uploader appear in the view.

Where I am stuck is when click I to add the file and click upload it throws an error and inspecting the network its trying to send the data to articles/async.php which I've not yet added - my question is where does this go in the project as its basically just a script? The information I have found doesn't tell me where I need to put this.

My thoughts are I just take the script and add it to my store function and find where its looking for the script and redirect it to the store but my thoughts are that this wouldn't work as it handles the image and then once its uploaded I send the information for the store.

If anyone is able to help that would be great like I said im a bit of a novice when it comes to Laravel so any help would be great.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l8RjCn
via IFTTT

Aucun commentaire:

Enregistrer un commentaire