Skip to content
Advertisement

Tag: laravel

SQLSTATE[23000]: Integrity constraint violation: 1048 laravel 5.7

I am getting error in Laravel 5.7: IlluminateDatabaseQueryException SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘name’ cannot be null (SQL: insert into stores (name, matric, phone, email, password, updated_at, created_at) values (?, ?, ?, ?, ?, 2019-10-01 16:29:49, 2019-10-01 16:29:49)) This is my form: This is UserController: This is the Migration: Answer You are missing name attribute in your html form.

Problems getting data on event change vue and laravel

I’m having a hard time getting data from an event triggered by a change in a select, let me show you the code: This is the select: This is the method: This is the function in the controller: That’s the route: In payloads on Vue Developer Tools i get the values that i expect but still get the error: [Vue

Axios POST fails on iOS

I am trying to do a simple ajax POST from domain1 to domain2 using Axios. This is a cross domain simple POST so there is no PREFLIGHT (OPTIONS) call. The response from the application is a simple JSON string. On Chrome, on Android, Windows and iOS (excluding iPhone) this works fine. But on iPhone 6,7,8+ on both Safari and Chrome

How to I save checkbox value with ajax in laravel?

I’m trying to save the value of the check box in laravel. I can save all the text fields and all the code works. When I try to save the value of the checkbox the code breaks. Here is what I’ve tried. All the help is appreciated. Here is my controller I’ve Here is my HTML Here is my script

How can I get a input required with vuejs

I have my chat and I dont want people to send empty message so I would like that my input become required. Thanks for your help. I tried to put “required=’required'” in the input line, I also tried veeValidate but it broke my chat when I use it, I also tried to put “Required = true” in Props and data

Using blade components and javascript

I’m using Laravel, and I’m trying to use javascript to fill a list of users. The problem is that each entry of the list is based on a view, which I made in a Blade component: pro_list_entry.blade.php: Then I would like to feed all those components to the list using Javascript: … After a little research, I found that what

Moment js undefined Laravel

I’m trying to use moment.js in my laravel project, not using vue, but still importing the package via npm. My app.js file: in my webpack.pix.js file looks like this: And then in my custom.js file I’ve just got this: I’m getting the following error: I’ve verified that moment is in my compiled app.js file. So why can’t my custom.js file

Advertisement