Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Guy On

I'm working on file delete function. I want to delete image from both database and folder. Image is deleting from database but not from the folder. But i want to perform delete image both from database and folder. Here is my code. public function dodelete() { { $contact = Contact::find(Input::get('id')); …

Member Avatar for diafol
0
4K
Member Avatar for Guy On

I'm saving data with the help of ajax and laravel. In the form the text field data is saving but the file is not saving with the help of ajax. This is my script. <script> $(document).ready(function() { $('#ajax').submit(function(event){ event.preventDefault(); $.ajax({ type: 'POST', url: 'post_contact', data: $('form#ajax').serialize(), dataType: 'json', }) .done(function(data) …

Member Avatar for Guy On
0
113
Member Avatar for Guy On

I'm uploading a file in laravel. The path is storing in database but unable to store image into destination folder. Here is my controller. public function post_contact() { $contact = new Contact; $contact->name = Input::get('name'); $contact->email = Input::get('email'); $contact->mobile = Input::get('mobile'); $contact->password = Input::get('password'); $contact->confirm = Input::get('confirm'); if($contact->save()) { $data …

Member Avatar for diafol
0
5K