Storing mail server pwd in database

My Laravel application needs to connect to a 3rd party email server using the mail server (SMTP/IMAP) user & pwd settings (which are different than the logged in user & pwd). Each user will have their own user & pwd and when sending/recei...
more »

2017-09-11 03:09 (0) Answers

Add fields in laravel dynamically and unlimited

I have part of my website where users or admins can add restaurant list (is really like posts, just different naming) There is some fixed inputs such as (title, description and map) I also need a part where users/admins can add restaurants menu this...
more »

2017-09-08 03:09 (1) Answers

How does Laravel parse the .env file?

I would like to mimic the way a Laravel application has it's environment variables set via a .env file. APP_ENV=local DB_DATABASE=fruits DB_USERNAME=fruituser DB_PASSWORD=secretpassword So it can then set default fallbacks in config.php like this...
more »

2017-09-04 13:09 (1) Answers

onclick get data from database using ajax laravel

What I am trying to do is to load data-id in drop-down menu when I click the list item, it need retrieve the data from db and append in table. So far, I loaded the data id in drop-down menu and while on-click the list I send ajax call to retrieve...
more »

2017-09-03 03:09 (3) Answers

create-react-app proxy requests to php backend

I'm running a Lumen (5.3) API via $ php -S localhost:8888 -t public when I hit any endpoint through postman it works without fail. However, when I try to curl localhost:8888/v1/auth/login for example I am given the following error: curl: (7) Fai...
more »

2017-08-27 08:08 (1) Answers

What is the meaning of php phrase?

I study Laravel framework source code. I reach the following command. class Application extends Container implements ApplicationContract, HttpKernelInterface { public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catc...
more »

2017-08-26 19:08 (1) Answers

split foreach loop based on some column value

I have a table with a column name type,how can i show results based on its column values in one query ? Tags id|name|type //type can be fixed,price Tag::orderBy('id', 'desc')->get(); Now i want to show price and fixed in two different parti...
more »

2017-08-26 01:08 (2) Answers

Laravel: how to get nested models

Could not you to direct me in right way. I have four models: "Item" belongs to several "Category" belongs to "Shop" belongs to "City" How can i select Item with all nested models (for json response, for example, it is not important). In other word...
more »

2017-08-25 17:08 (1) Answers

Laravel 5.4 Array to string conversion exception

I am trying to break down a string into an array and then print the values on the screen. Here is the string that i am trying to break: "Cog|Condor" "|" using this to split it. Here is how I am doing it: <?= $arrays = explode('|', $b->brand)...
more »

2017-08-25 16:08 (4) Answers

Domain name alias, sitemaps.xml and robots.txt

I'm looking add referencing the sitemap for multiple domain name alias which is spun off logic within a Laravel framework. in my robots.txt file - but I'm not quite sure what the correct way is to do this. Sitemaps exist and are present and correct, ...
more »

2017-08-23 12:08 (0) Answers

multiple prefix with the same route group

im writing a fairly simple website for a school ... this website has news , articles , video clips ... etc the way it works is in the home page we present visitor with some lessons like >math >geography >chemistry user selects 1 on...
more »

2017-08-22 06:08 (7) Answers

Retrieving All Days Specific in A Month

I'm trying to retrieve all of the Mondays and Tuesdays and the last Sunday of every month with Carbon since a specific date in the past. Then I would like to loop through the array of days and create an even for that day. I'm trying to figure out ho...
more »

2017-08-21 19:08 (1) Answers

Custom column not getting updated

I'm facing the issue with my custom column form_id into users table. I'm trying to update using save() but it didn't update it. Code: Auth:user()->form_id = $formdata->id; I'm begginer for laravel and need your help. Any help would be app...
more »

2017-08-21 14:08 (2) Answers

hashing content of uploaded file in php

I have a upload form and also a Dropzone file uploader beside it where users can upload their .csv files . I want to check whether the file is new or not. the check should contain if the contents of file are new or not I store the file names in dat...
more »

2017-08-20 14:08 (1) Answers

Sorting of array in laravel

I have a two array like this. $array5 = json_decode('[{"time":"12:08 PM","md5":1201},{"time":"01:00 PM","md5":1121},{"day":"03:03 PM","md5":1401},{"time":"03:36 PM","md5":1334}] ',true); $array6 = json_decode('[{"time":"12:08 PM","ips":20},{"time...
more »

2017-08-18 12:08 (2) Answers

laravel riary forum links saving in database

I use Riary forum in my project. In messages on forum can be links like: This link saving in database like this <a href="../../../../4-pravila/652-skaut-tsentr"> And then when I hav...
more »

2017-08-17 15:08 (0) Answers

Laravel 5.4 form post and save() don't work

I have problem with submitting data into database. Database works fine, as I can seed data into it and display data from it. I am suspecting that there is something wrong with post form, as I don't get any errors, it is like post doesn't reach contro...
more »

2017-08-15 01:08 (0) Answers

Why do Middleware implements no interface?

In Laravel < 5.2, middlewares implemented an interface described by this contract: Illuminate\Contracts\Routing\Middleware. Now, a Middleware created with artisan does not implement anything anymore. And the contract was removed with no explaina...
more »

2017-08-14 11:08 (0) Answers