Van1310 Van1310
12

data can't update

hii i am now data update using ajax but 404 (Not Found) error when data update here is my blade file @foreach ($user as $row) <input type=&...
Laravel
12
115

insert in database number of seats

How to insert in database number of the seat from the bus and check what seats are available. What I have now. First I create a bus at table buses, I insert a name for the...
Laravel
11
143
BikashKatwal BikashKatwal
11

store options in database

I have created questions and Answers Model where I have to store many answers/options for one questions, choosing one correct answer. class Question extends...
Laravel
11
128
Omda Omda
11

How can i get id of created row when testing

i am working with phpunit when i created new record using endpoint, i cant get id of my new record /** @test */ public function authenticated_user_should...
Testing
11
64
nkusibojoski nkusibojoski
11

Accessor in specific model is not working

I have model Course, and a lot of fillable fields. One of these fields is "courseImage". I want to have accessor on that field so I have created following functio...
Laravel
11
99

Required data

How can I put the below coding into the ROLE part? 'required' => 'required' This is the other part which is email that I already done. B...
Laravel
10
83
pedroroccon pedroroccon
10

Laravel and thermal printers

Greetings, I'm developing an application that's hosted on a webserver. My application simples get a user input and them print that on a the...
General
10
127
chrisgrim chrisgrim
10

Axios Patch issue when updating model

Hi Guys, Im hoping to have a fresh pair of eyes look at this because I can't see what I am doing wrong. I am trying to update a laravel model and I can't seem to make it wo...
Vue
10
111
splendidkeen splendidkeen
10

select2: How to convert array to Collection?

I am trying to provide a select option, where we can choose multiple friends (User.php), which will be looped through within our Controller. <select class...
Laravel
10
172
timyboy12345 timyboy12345
10

Visiting my Laravel website hosted on Synology downloads a file

Hi there, I want to host a Laravel website on my Synology NAS. I have everything set up, and working. I've downloaded composer, created a project, forwarded all port...
Laravel
10
143
hunterhawley hunterhawley
9

Query Efficiency

I am calculating basketball stats and have the models Stat, User (which the basketball players are held within), Team, Stat_Meta, Game, Season, Substitution. I have...
david2000 david2000
9

Check the dates before planning

I planned a training date on 10/09/2019 My problem is that when I planned a revision for example...
SandraCarlsen SandraCarlsen
9

Sorting a foreach loop in blade with relationship data

Hello New laravel developer, coming from frontend and javascript so please dont kill me :-) I have a problem with sorting a foreach loop in my blade I have this expo...
Laravel
9
124

Insert a row when no columns are defined

I have a table user_profiles, which contains user_profile_id, user_id, birthdate, profile_image... 10 columns alltogether. In one place of my application, I need to create...
javillafania javillafania
9

Laravel Mail not using updated .env variables

I have a helpdesk application that sends email notifications. On the production server, I initially set the following env variables to something like: MAIL_USE...
Laravel
9
100

Pop up message for incomplete data entry

May I know how can I do a pop up message for incompletion of data? Im using a simple form....
Laravel
8
119
Griehle Griehle
8

Pivot table data

I have a Shop, or store, In Tinker I can access it $user->shop; The Shop has Products and the products have types. But there is a p...
johncarter johncarter
8

Change validation message :attribute placeholder for array inputs

I have a nested array of inputs being posted to a controller. $validatedData = request()->validate([ 'line.*.image' => 'image|max:500', 'line.*...
Laravel
8
120
rhand rhand
8

Laravel Dusk Unable to locate element: ...":"body textarea[name='email']"}

Tried a test that I ran succesfully before valet @ MacMini [jasper] $ php artisan dusk tests/Browser/ExampleTest.php PHPUnit 7.5.14 by Sebastian Bergmann an...
Laravel
8
278
Create a New Discussion Button