pass array of emails to Job class Mail::to

I am able to send single email but when it comes to multiple emails jobs class fails to send it to multiple users. The code below works fine and sends email to one user $email = new Report($this->user); Mail::to($this->user->email)->que...
more »

2017-05-20 21:05 (3) Answers

How to fetch row in PDO?

Here is my code: $qs_num = $this->dbh->query("SELECT COUNT(amount), COUNT(*) FROM qanda WHERE type = 0"); print_r($qs_num); die; And here is the result: //=> PDOStatement Object ( [queryString] => SELECT COUNT(amount), COUNT(*) FROM q...
more »

2017-05-20 19:05 (1) Answers

Select from variable php and pdo

I have this PDO query: $records = $conn->prepare('SELECT taak FROM :selectfrom WHERE user_id = :id'); $records->bindParam(':id', $_SESSION['user_id']); $records->bindParam(':selectfrom', $selectfrom); For some reason this is not working. ...
more »

2017-05-20 18:05 (0) Answers

PDO bindParam not replacing multiple instances

I'm building a search function for my site and would like to search in the title and content of the articles. The query would look like SELECT id FROM articles WHERE title LIKE '%<user input>%' OR content LIKE '%<user input>%'; Is there...
more »

2017-05-20 17:05 (2) Answers

Laravel request validator redirect with errors

I would like to make a validator through the usage of Laravel requests, and validation is working fine. But if I don't do them in the controller I can't return back to view with errors if validator fails. Is it possible to implement this: if (...
more »

2017-05-20 13:05 (1) Answers

Using Facebook API disables my account

I'm trying to use the Facebook API in my web app. I've created a dedicated FB account to create the FB app and access it through the API. I'm not aware or any wrongdoing, I'm not scraping the site, I'm using the API, I'm not sending too many reques...
more »

2017-05-20 13:05 (0) Answers

Display dynamic URLs in CodeIgniter for seo

I'm building an online store based on CodeIgniter. I'd like URLs to look like this? What is the solution for this type of SEO friendly url. http://example.com/[product-category]/[product-sub category] I need this url: example.com/women/sarees-sar...
more »

2017-05-20 12:05 (2) Answers

Paypal REST API - in Laravel

I'm new to this payment gateway integration. In my project i'm using paypal recurring process. I perfectly completed Paypal integration. And the Paypal IPN also completed. I used this code: $plan = new Plan(); $plan->setName('Mysite') ...
more »

2017-05-20 12:05 (0) Answers

Data Exchange Between Functions

Yandex Translate I wrote a code like the following. I want to exchange this data between functions on the two pages. In other words, on the page $row variable I want to be able to use on this page, How Can I do that? Google Translate I wrote a code ...
more »

2017-05-20 10:05 (0) Answers

Page isn't working - Laravel

Hi guys i just moved my laravel project from my windows server to my ubuntu server but when i try to load the app it says this page isn't working. I would like to ask your assistance with regards to this matter. Thanks ...
more »

2017-05-20 09:05 (3) Answers

Access attribute of a 'hasOne' related object

In my User class I have this function: public function profile() { return $this->hasOne('App\Profile'); } In the controller I used $users = User::all() to get all the users and then pass it to the view using with('users', $users) In the vi...
more »

2017-05-20 02:05 (1) Answers

Calendar by URL doesn't work in web calendar

I have built a PHP-constructed ics/ical file to which I subscribe from the webbased Google Calendar. The initial events are shown but the calendar is never updated. Existing event don't update and once a new event seemed to be added. The iCal validat...
more »

2017-05-19 23:05 (0) Answers

Laravel Broadcast Channels - check connections

I can't find this in the docs or by searching, maybe someone has some tips. I'm trying to check how many connections are on a presence channel on the backend. I can check fine on the front-end with Echo like so: Echo.join('chat') .here((users) ...
more »

2017-05-19 20:05 (1) Answers

Configure the sending of mail on the Joomla

Help configure the sending of mail on the SMS Joomla There is a Landing for the Joomla, there are 3 forms in the content of the material, I'm trying to send it via Ajax to my PHP file, but in the inverter it says that the file is not found, wherever...
more »

2017-05-19 17:05 (0) Answers

form attachment size won't exceed 20,000 mb

I've made a form that will let you attach a file to the email, however whenever someone adds an attachment, the form restricts them from uploading anything larger than 20,000 mb but I have set the max-size to well over 50 mb, sometimes it won't even ...
more »

2017-05-19 17:05 (0) Answers

Validate signup form in modal bootstrap

I am trying to validate my sign form in a modal box but every time I submit the modal is closing and page refreshing. I tried to install bootstrap validator but it does not work. Also i can not get my error messages if e.g email is empty, still rel...
more »

2017-05-19 16:05 (2) Answers

Getting error during FB api connection

During connection I am getting an error. At this site. When I press Log in and then agree getting error An uncaught Exception was encountered Type: FacebookApiException Message: An active access token must be used to query information ...
more »

2017-05-19 16:05 (0) Answers

PHP PDO update does not work (blank page)

I want to update a record in my database using pdo. The connection should not be the problem because I already use it for GET and INSERT. try { // Create connection $conn = new PDO("mysql:host=$servername; dbname=$dbname", $username, $passw...
more »

2017-05-19 16:05 (0) Answers