Skip to content

Incorrect table definition; there can be only one auto column

Migration File After running php artisan migrate SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key (SQL: create table progress (id bigint unsigned not null auto_increment primary key, state_id bigint unsigned n…

how to simplify this complex query

This is an extract of one of my php functions. I’m struggling to get this optimized as is super slow, as I need to load all interview records, and then check if the current user is either assigned as user_id on the interview record, or if the user->id is in the interviews shared_user_ids which is jso…

NOT_ENABLED_FOR_CARD_PROCESSING Paypal authorize order

When I want to approve the payment, it gives me an error, so I don’t know what to do since the same example executed is the same as the api. Answer Receiving and transmitting card numbers through your own server poses a very high risk, has a high compliance burden, and it is very likely that you should …

PhpExcel many columns causes the file to be broken

I am generating an excel file using phpexcel, the columns are 186 so I have created an array of the header columns and dynamically adding them the file is created well but the columns are broken as seen in the picture below. anyone ever encountered this issue? UPDATING THE QUESTION Now the xcel sheet has over…

youtube api v3 channel methods not working

there was a question about the YouTube api, regarding information about channels, some channels are not displayed by name, for example HajimeRecords and GUZNO and kuplinovplay, the latter only outputs all the information. What can this problem be related to? Requesting everything regarding the channels method…