Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

insight's avatar

Issue in usage of datatable in Laravel 10

Dear Friends, I am using Laravel 10 form with datatables for listing data in onchange of dropdown. Shows data correctly but the navigation link shows incorrect as shown my javascript part is $(document).ready(function() { // ...................... Data Table ...................... new DataTable('#itemtypeTable'); $('#dt-length-0').next().rem

insight's avatar
insight's avatar insight2yrs agoLaravel
0
1
peterpan26's avatar

implementation of adldap

hello i'm trying to implement the following login: "https://www.exchangecore.com/blog/using-ldap-active-directory-authentication-php" i configured the script to use laravel eloquent on controller. with adserver and ldaprn i created routes for showlogin form and login post(submit) i altered on .env to the app url of the app, and on config.app now when i try to access t

peterpan26's avatar
peterpan26's avatar peterpan262yrs agoLaravel
0
1
phayes0289's avatar

How to Pass a Folder Name via Javascript to Laravel Controller

I use a component to implement my CKEditor on numerous pages throughout my project. <x-ckeditor folderName="posts" /> This component code includes a block about uploading an image to an ImageUploadContoller. When the image is uploaded via javascript, several versions of the image are created. I want the foldername that I am passing into the compoent to direct

phayes0289's avatar
phayes0289's avatar gych2yrs agoJavaScript
2
3
Last reply by gych 2yrs ago
daveb2's avatar

Livewire issue with V3

Hi all, I'm trying to understand why one of my edit routes is failing to update the model instance after upgrading from livewire V2 to livewire V3. The issue is that when I use the edit route to modify an existing $resource, not all of the properties make it into request()-> in the update route when I submit the form. The model properties outside of the livewire component ar

daveb2's avatar
daveb2's avatar daveb22yrs agoLivewire
0
2
ponnydalen's avatar

Load data from checkboxes array ajax

Hello. Building a booking form where I've got 3 checkboxes. I display them by loop trough the db table(it's only 3 results in table and will always be) @foreach($services as $service) <label class="py-4 col-md-12 cursor-pointer checkbox_label_div"> <div class="custom-control custom-checkbox"> <input type="checkbox" class=

ponnydalen's avatar
ponnydalen's avatar thewebarti...5yrs agoLaravel
1
1
Last reply by thewebartisan7 5yrs ago
dave100's avatar

Jetstream VueJs add fields to profile

Hi, I've been playing around with Jetstream, VueJs & Interia. I tried to add an additional field(addressl1) to my users profile however when I load the profile page the field is there but the current database value is missing. I'm sure I'm doing something simple wrong as I've never used Interia Js before. My code is as follows: updateProfileInformation.vue <template>

dave100's avatar
dave100's avatar gregupton5yrs agoLaravel
1
1
Last reply by gregupton 5yrs ago
ollie_123's avatar

updateOrCreate - Ajax only trying to create

Hi All I'm trying to update a record using Ajax and being new to Ajax & laravel i'm confused about the result of the query. I'm trying to update a record but when i make the Ajax call, its trying to insert a new record into the DB. Please could someone point me in the right direction as to where i'm going wrong? Error: SQLSTATE[HY000]: General error: 1364 Field 'lname' does

ollie_123's avatar
ollie_123's avatar oli_d1116yrs agoGeneral
9
1
Last reply by oli_d111 6yrs ago
Jman's avatar

Middleware causes Route Note Defined error..?

Hi all, I'm working with Middleware for the first time and hit an issue I can't figure out. I have users, and users can have a business. Naturally, I don't want users editing each others businesses by manually entering the business id in the url. Middleware seems like the right approach here. However, when I add the middleware to the route, I get an error saying that a route th

Jman's avatar
Jman's avatar Jman8yrs agoLaravel
4
1
Last reply by Jman 8yrs ago
octoxan's avatar

Running into CORS issue only when setting contentType to "application/json"

I'm trying to work on an API where a user can submit a form from example.com (not the Laravel website) and it will make an ajax post request to subdomain.example.com (the Laravel website). One of the value's I'm trying to submit is a checkbox, so it's an array. <input type="checkbox" name="array[]"> If I use the following jQuery $('.form').submit(func

octoxan's avatar
octoxan's avatar leemg9yrs agoLaravel
3
1
Last reply by leemg 9yrs ago
ufodisko's avatar

jQuery AJAX returns 500 (Internal Server Error) but works when I reload the page

I have a Like Status button that sends data using AJAX to the controller. When I click the button, the button changes from "like" to "dislike" and all the classes and form action get changed as well. The problem is, if I like the status, I see the changes reflected, but if I decided to dislike it without reloading the page, I get this error GET http://local

ufodisko's avatar
ufodisko's avatar RoboRobok9yrs agoGeneral
3
1
Last reply by RoboRobok 9yrs ago
jrdavidson's avatar

Working with jQuery and Laravel On Deleting Item

This is currently how I have my destroy method in my UsersController. Once this method is reached I would like for it to verify that the id is an integer and verify that it belongs to a user in the database. If it is neither an integer or belongs to a user in the database I would like for it to 404 error. If the user is found I would like for it to delete the record from the

jrdavidson's avatar
jrdavidson's avatar xtremer36011yrs agoGeneral
10
1
Last reply by xtremer360 11yrs ago
thimothi1's avatar

ADD or Remove Dynamic dependent select box Laravel

This is a simple Dynamic form so that I can select a country from the first select box it will load all states of that country in each row. It was working fine for the first row but when I click Add More and select another country for the next row it was loading the last selected row states in all rows. Create.blade.php <th scope="co

thimothi1's avatar
thimothi1's avatar thimothi14yrs agoLaravel
0
1

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.