In the Laravel framework, I am trying to modify my columns using change() by migrations. Right now, I need to install... composer require doctrine/dbal I am
I am working with Laravel 5 and I am having issue getting ->wherePivot() to work on a Many-to-Many relationship. When I dd() the SQL it looks like Eloquent i
I would like the user to be directed to a certain URL when they click the 'add to cart' button. At the moment I have this: /** * Set a custom add to cart URL
The PHP problem has been solved. Here are the HTML and PHP codes that I'm using: contact_form.html: <html> <head> <title>My Contact Form
What is the best way to echo to the console in a composer.json script? For example, I have used the scripts section to create a custom installer and at the end
I have a PHP function which I call when I caught an exception. It accepts that exception as optional parameter, so it can show it for debugging purposes: publi
By using Maatwebsite/Laravel-Excel version 3.1 to import excel sheet, here I faced an issue date time column of the excel sheet returns unknown number. How to s
I am having trouble placing data into its right structure. I have a result set data of: array ( 0 => array ( 'company_id' => 1, 'company_ab
From PHP I would like to call a stored procedure in MySQL. The procedure takes input and output parameters -- not "INOUT" parameters. For a simple example, sa
Here is my array from hasMany relationship in Laravel framework. $array = ['php','css','hrml']; How can I display as below using implode function. (code in m
I'm having difficulties getting nginx to stop execution of PHP in an uploads directory on a magento install. I've tried many combinations of directives that sh
I want to make query in Laravel Eloquent like here its raw MySQL query SELECT * from exampleTbl where id in(1,2,3,4) I have tried this in Laravel Eloquent
I have created a collection and added a unique key like this db.user_services.createIndex({"uid":1 , "sid": 1},{unique:true,dropDups: true}) The collection
I am trying to find out how to add in Metadata or headers (Expires, CacheControl etc.) to a file uploaded using the Laravel 5.0 Storage facade. I have use the p
I have a certain product category that I only want to offer to logged in users. How would I implement that? So how to hide specific products from unlogged user
In a lyrics application I'm coding, I'm using an array to print an artists table. The artists array looks like this: $artists = [ [ "Avril Lavigne"
I've followed this article to add multi language into my app and it's working fine, the only issue i need to solve is that languages slug won't add to the url.
I keep gettings a 500 errors, appdebug = true, but it doesn't show me exactly what the problem is. It logs all other 500 just fine. I can make the 500 errors go
I'm using this PHP code: $service_url = 'https://apis-sandbox.fedex.com/oauth/token'; $curl = curl_init($service_url); $curl_post_data = array( "co
I'm getting the following error on my live site. "Error Number: 2013 Lost connection to MySQL server during query" It was working fine before a day but now the