Email not send using Smtp in laravel 5.4

i want to send an email to forgot password function congaing new password. Here is my code, MAIL_DRIVER=smtp MAIL_PORT=587 MAIL_USERNAME=offrs MAIL_PASSWORD=mypassword MAIL_ENCRYPTION=tls here is my function for ...
more »

2017-06-21 21:06 (0) Answers

ManyToMany Laravel Relationship

I have my model products: class Product extends Model { protected $table = 'products'; protected $primaryKey = 'id_product'; protected $fillable = [ 'id_category', 'title', 'credit', 'created_at', 'updated_at', ]; public function ca...
more »

2017-06-21 20:06 (1) Answers

Laravel - Can't pass data through view

I try to send data from a controller to a view on Laravel 5.4. My controller "PagesController.php" : public function bird($id) { $infoBirdById = new InfoBird(); $birdById = $infoBirdById->getBirdById($id); $infoHealthById = new Inf...
more »

2017-06-21 17:06 (1) Answers

Correct way to make a schedule

I've been debating whether to use Date functions or just whether there is a cleaner way to make an array of a given day's minutes at the moment my code reads like this; function emptySchedule() { $emptySchedule = []; for ($h = 0...
more »

2017-06-21 17:06 (2) Answers

Doesn't Django cache support Integers?

I am using PHP to populate my memcached, and Django to read the cache. I have made my custom make_key function in Django so that the key is same and Django doesn't modify it. def make_key(key, key_prefix, version): return key CACH...
more »

2017-06-21 15:06 (1) Answers

Laravel 5.4 - Undefined variable: markdown

I am trying to send a simple email with Laravel. I have no problem sending a normal HTML email but when I try to use the markdown feature I keep getting the error Undefined variable: markdown I am not using any instance of a model in my email righ...
more »

2017-06-21 14:06 (1) Answers

PHPMailer attachemnt not working

i added the upload file function in phpmailer function when i want to send file, it only showing name of file, actual file is missing in attachment. is there any idea to solve this problem. Any help will be appreciated. Looking for help <...
more »

2017-06-21 14:06 (1) Answers

Php - Getting file size with an url

I am trying to get a file size of an image from a remote url, I am trying to this like so: $remoteUrl = $file->guid; //remote url example: http://myApp/wp-content/uploads/2017/05/Screen-Shot-2017-05-08-at-10.35.54.png $fileSize = filesize($rem...
more »

2017-06-21 13:06 (3) Answers

USI Webservice SOAP Format

I am in the process of developing process to communicate with the Unique Student Identifier (USI) Webservice. I have a Vanguard token, courtesy of some nice (SoapClient avoiding) code by Sergey Vidusov (thanks!) and I'm trying to use the contents of ...
more »

2017-06-21 12:06 (0) Answers

Laravel not storing phone number

Iam working on a school project, and i have a registration form. Iam working in laravel 5 and am using the auth package of laravel. I added my extra registration forms like this protected function validator(array $data) { return Validator::make(...
more »

2017-06-21 11:06 (1) Answers

cakephp pagination ajax request doesn't work

I am very annonying with cakephp ajax pagination. i am working with a big project where i need a page with ajax request with pagination. So let me explain what i want. On one hand, i want a ajax pagination(that works very well) but on the other hand ...
more »

2017-06-21 09:06 (0) Answers

TokenMismatch Error on Ajax Requests

I am getting TokenMismatch Error on Ajax Submit when I submit form it gives me error. Here I am using Laravel 5.2. Where I am passing X-CSRF-TOKEN on ajax call. Set Token on on meta on default.blade.php. I've tried all possible solutions from StackOv...
more »

2017-06-21 09:06 (6) Answers

Laravel inner join saying variable undefined

I am doing a search to filter through users that are displayed on my screen. The display of the users is working without the search. However when I type in the search a name, and go to display it, I get an undefined variable for search. $Search ...
more »

2017-06-21 04:06 (1) Answers

PHP sort array by number in filename

I am working on a photo gallery that automatically sorts the photos based on the numbers of the file name. I have the following code: //calculate and sort $totaal = 0; if($handle_thumbs = opendir('thumbs')){ $files_thumbs = array(); while(...
more »

2017-06-20 20:06 (3) Answers

Break very long words with php mpdf

I have generated pdf file, everything works just fine, just one thing, if I write very long word for example: qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq All document becomes small and unreadable, for some reason it tries to fit the word in 1 ...
more »

2017-06-20 19:06 (2) Answers

How to reuse a Dusk test browser instance?

My project on the Laravel 5.4 framework and I am using Dusk for browser tests. I have a page that has several sections I'd like to test independently, however I'm running into the problem where I have to start a new browser instance, login, and navig...
more »

2017-06-20 17:06 (0) Answers

Laravel route not defined error

I keep getting route not defined error and if I use url() I get server can not provide a secure connection error. I hope I can get some help. route Route::get('/show/{table_name}/{product_id}', 'PageCotroller@showdetails')->name('product-show');...
more »

2017-06-20 16:06 (2) Answers

htaccess browser caching not working

My .htaccess file ignores the whole browser caching stuff. I have multiple domains on the same server and in one of them, the same code is working fine. My testing tool is <IfModule mod_filter.c> <IfModule mod_deflate.c&...
more »

2017-06-20 16:06 (0) Answers

Disconnect a specific user

I am currently using laravel 5.4, i get the list of online users, and i want from my admin-dashboard to make a specific user from my list to disconnect, is there a way to do so ? ...
more »

2017-06-20 16:06 (2) Answers

Sort multidimensional array by key of set of array

I'm looking for a solution to sort by key a multi dimensional array, the point is that I can sort a set of array with multidimensional that has no custom key ID and the array is in set, but this array contains custom key and I need to sort by date: ...
more »

2017-06-20 16:06 (1) Answers

Download all Email Attachments from Today

I have a PHP script that I am using to download the attachments from all emails in a gmail inbox. The script isn't my own work, I found it as the answer to another question on here. However I have attempted to modify it slightly to my own needs (Only...
more »

2017-06-20 15:06 (0) Answers

Error during loadHTML file

I'm developing an app that should load a web page and save a data present in the second row of the second table. This is my code: $dom = new DOMDocument(); if ($dom->loadHTMLFile(''.$this->_...
more »

2017-06-20 14:06 (0) Answers