I've encountered a issue with my Ajax function in the Laravel project I'm working on. The function retrieves data from a database and displays it on a Leaflet map. However, when I use setInterval, the markers on the map start to duplicate. I&apos ...
Imagine the scenario where three tables are present as described below: projects- id, name environments- id, project_id, environment_id deployments- id, commit_hash In this setup, project id and deployment id are stored in environments. Both envi ...
Here is the controller code snippet I'm using: $test= test::find($id); return $test; Initially, it was returning null. However, when I modified it to: $test= test::where('id',$id)->get(); return $test; it started returning all v ...
I am attempting to utilize Vuejs to sum the amount array in Laravel Relationships using computed properties. https://i.stack.imgur.com/MiMxP.png However, it is currently returning a NaN result... computed: { subTotal() { return th ...
I am encountering an issue while attempting to submit an image via Ajax, receiving the following error message: The POST method is not supported for this route. Supported methods: GET, HEAD. Here is the Javascript code: $("form[name='submitProfi ...
I am attempting to create a file uploader using vuejs within laravel 8. To achieve this, I have included the following meta tag: <meta name="csrf-token" content="{{ csrf_token() }}"> However, I continue to encounter error 419. Be ...
I have encountered an issue with my custom directives for Ziggyroutes in Laravel. These directives were functioning properly in Laravel 5.7, but after upgrading to Laravel 5.8, they no longer work as expected. Instead of executing the directive, it simply ...
After collecting data from a form using various methods such as Serialize, Implode, and Json_encode, the stored information looks something like this: Serialized Data +-------+----------------------------------------+------------------------------- ...
Seeking help as a newcomer to the world of Laravel and Vue.js. Trying to populate data on a Vue component, but facing an issue with the tableData variable in the axios.get response. It is not rendering the array data onto the table as expected. Could there ...
Transitioning from codeigniter to laravel, I am still fairly new, so please pardon me if this is too simple. I'm facing an issue that seems straightforward but can't find any relevant information online, although I found some packages that are close. I've ...
Is it possible that this question might seem a bit silly, but I haven't been able to find an answer yet. I've been working on including a library from node_modules, and based on what I've learned so far, we should include it using asset: ...
I've been working with Laravel 5.6 and have successfully set up all my API routes, which are responding to requests from my REST client (Paw). Now, I want to create a basic front end to interact with these routes. In an effort to utilize Laravel&apos ...
After transferring my Laravel and Vue JS application to our server, I encountered an error that reads: Symfony\Component\HttpKernel\Exception\HttpException A similar issue was reported here, but unfortunately no solution was provid ...
My website, housed at my-example-domain.com, utilizes an Angular-based SPA along with a Laravel 5.3 REST API located at my-example-domain.com/api. All of the APIs are accessible to the public, allowing unauthenticated users to interact with my Angular SPA ...
Within a Laravel view, there is a component where the data in the select tag sometimes doesn't show up. It's quite strange as it randomly displays the data and other times it doesn't. There are no errors being logged in the console or the vi ...
My component is functioning properly on the create form but encountering issues on the update form. Although the image displays on the update form, when attempting to upload it, there seems to be no file received for the field 'image' This is th ...
Verification code $this->validate($request, [ 'email'=> 'required|email|unique:users', 'email'=> 'required|max:120', 'password' => 'required|min:4&apos ...
I am currently utilizing the Laravel Blade template engine for page generation. I have a default page setup to display all content. The issue I'm facing is that I can't seem to include all CSS styles in the head section. Specifically, the menu has some cus ...
I have been following the steps outlined on to set up Laravel Jetstream. Upon running artisan jetstream:install, I selected Livewire support, API support, email verification, and PHPUnit support for installation. Next, I executed npm install as per the ...
Currently, I am working on enhancing a view within a Laravel project. The entire project can be found on GitHub at https://github.com/wvulibraries/rockefeller-css/tree/trying-searchy/src/project-css. My goal is to detect if a string contains a file name wi ...
I have created a partial view to show the page header, which takes in two variables - an Icon and a title. The code for pageHeader.blade.php is as follows: <div class="page-header"> <div class="row"> <!-- Page header, center on small sc ...
My current setup involves 2 tables. One table is for storing debt information (id, amount, category_id), while the other table is used for debt categories (id, name). I am attempting to retrieve data based on each month from the debt table. However, I have ...
Could someone please explain this condition to me? I'm having trouble understanding it. The code is functioning correctly, but I can't remember the logic I used to return the value. $chkBlock = Blocked::where("block_username", "=", Auth::user()- ...
I have a simple inquiry without an answer yet. Is there a way to transform my array from this: [{"sku":"6"},{"buyers":"7"},{"base":"8"}] to this: [{"sku":"6","buyers":"7","base":"8"}] I am dealing with three queries for three separate database tables: ...
I've been experimenting with testing my Laravel system using the DatabaseTransactions trait. The issue I'm facing is that it only rolls back the transaction after all tests on a TestCase have been executed. Is there a way to ensure a fresh database instanc ...
How can I allow users to update their profile information displayed in input fields pulled from the database? Controller.php // Display user details in input field Public function userDetails() { $id = auth()->id; $details = Users::where('id', ...
Help Needed with Organizing My Laravel App I am looking to structure my Laravel application in the following way: API Admin panel Public website So far, I have started building a folder structure that looks like this: app/ Http/Controllers/ ...
After successfully running npm run prod in my Laravel application for several months, it suddenly started throwing an error out of the blue today. I am at a loss as to what caused this issue and cannot seem to resolve it. This error is hindering my develop ...
I am currently facing the challenge of filtering users in my database using numerous if / elseif statements, and I'm on the lookout for a more efficient method. At present, I find myself writing if statements for every possible query based on the following ...
Here is the JavaScript code snippet: $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' } }); $.ajax({ type : 'POST', url: 'test', data: data, success: ... }); An issue where a 400 error occurs has been identified, but it only affects ...
I'm encountering an issue with my AJAX response. When I click the 'view' button in the 'All Patient' table, I am trying to view specific patient details using an AJAX request. However, I keep getting an error in the response, sim ...
I'm looking to retrieve the model (Offer) signature using jQuery. When I alert only the model, everything works fine. alert( JSON.stringify(<?php echo $offer; ?>) ); However, when trying to access just the $offer->signature like this alert( JSON. ...
I have recently developed a new event: <?php namespace AppEvents; use IlluminateBroadcastingChannel; use IlluminateBroadcastingInteractsWithSockets; use IlluminateBroadcastingPresenceChannel; use IlluminateBroadcastingPrivateChannel; use Illu ...
I am struggling to fix it, please assist me. I can't seem to pinpoint the issue and need some guidance. Error Image Links: https://i.stack.imgur.com/VhVXL.png https://i.stack.imgur.com/IENFm.png ...
I am working on a route called stats. This is how my current routing setup looks like: Route::get('stats', 'StatsController@index'); Route::get('stats/{query}', 'StatsController@store'); The main objective is to display stat data when someone visits the ...
Looking to enhance my knowledge of package development using Laravel Nova as a reference. The confusion arises from how Nova's assets are compiled, particularly due to the absence of a webpack.mix.js file and presence of a webpack.mix.js.dist file. I ...
I've recently refactored my controller by creating a Trait and moving some methods into it: Here is the original code in my controller (with one method): public function edit(Product $product) { $categories = Category::get(); $main_image = $produ ...
Within my api.php file, I have implemented two routes: Route::get('resume-list/{templateID}', 'BasicController@getAllResumes'); Route::get('resume/single/{id}', 'BasicController@getResume'); The first route is functioning correctly, but the second route ...
Looking to incorporate the blueimp jquery file upload feature into my Laravel app. Check it out here: https://github.com/blueimp/jQuery-File-Upload The form is set up and working properly with the plugin, but facing issues with creating server-side script ...
I have implemented infinite-ajax-scroll in my PHP Laravel project. This project displays a long list of divs and instead of using pagination, I opted to show all results on the same page by allowing users to scroll down. The filtering functionality works s ...
I am trying to retrieve an id from a button for use in my ajax request. Below is the code snippet for the button: <form> <div class="form-group"> <button class="btn btn-primary" name="deletecar" id="{{$car->id}}">Delet ...
When running a jQuery AJAX post to my controller, I check if a session exists. If it does, I read the value, forget the session, and return some data to the view. After using the forget method in the controller function and reloading the page to make the ...
I encountered an issue in handling the response for an ajax request I initiated. Essentially, when a checkbox is changed(), it triggers an ajax call with a csrf-token that needs to be accepted via the POST method. The modifications are successfully made i ...
When trying to integrate the Stripe API into my Laravel project, I encountered an error message stating: Unexpected error communicating with Stripe. If this problem persists, let us know at <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data ...
While attempting to install the Algolia Laravel package, I encountered an error stating: The trait 'App\AlgoliaEloquentTrait' cannot be found I followed the installation, configuration, and quickstart instructions provided in this link: h ...
Embarking on my journey as a Mailchimp application developer, I encountered an issue while attempting to create a list through the Mailchimp API. Has anyone else experienced this error? Below is the HTML code I used for the checkbox input: <input id ...
Currently, I am exploring the most effective method to perform a specific test in PHP. The task involves analyzing a list of numbers and identifying any missing indices in the succession of these numbers. If there are missing indices, an alert needs to be ...
When attempting to access detail.blade.php, I encountered an error stating "Missing required parameter for [Route: admin.request.update] [URI: admin/request/{request}] [Missing parameter: request]." Despite following the steps and codes exactly as in my pr ...
Recently, I made the transition to Laravel 6 and successfully set up my development environment using PHP 7.4, mysql 8, and nginx on Docker. While working on migrating a website to Laravel 6 and familiarizing myself with the framework, I encountered an iss ...
Currently, I am utilizing the Nova Admin panel in my Laravel project. I have integrated a new resource that requires the admin to input text into various fields. One of these fields is a meta-title or meta description. While everything seems to be working ...
I am working on a new Order page where users can select a category, then a service, and fill out the quantity field for their order. I have an idea to create a function using @if and @else statements. In this function, I want to display the quantity fiel ...
Because of the poor internet connection in my region, I made the decision to avoid using the laravel/ui package. I am facing an issue with Auth::attempt not functioning correctly. The hash keeps changing, causing the hashed password to not match. Can anyo ...
Upon testing my application on the live server, I encountered a 405 error when attempting to delete records: Request URL: http://ijsbrekerz.xxx/api/cards/10 Request Method: DELETE Status Code: 405 Method Not Allowed Remote Address: 185.xx.xx.xx:80 Referrer ...
Every time I try to submit values from an HTML form, the page reloads without any changes. I've double-checked the routes and controller, but everything seems correct. Solution <div class="panel-body"> @if (session('status')) <div cl ...
I'm currently working on a project that involves using Laravel 9 for the backend and React for the frontend. Whenever I attempt to make a request, it returns an unauthorized error from the backend. However, when I test this in Postman, it returns a su ...
I am trying to send a post request using ajax to a controller in Laravel. The ajax request includes two input arguments, and the goal is for the controller to find the column in the database with the first argument and set the name attribute with the secon ...
I'm encountering an issue while trying to use the JSON Resource to Array converter in Laravel. Here is a snippet of my code: DataResource.php <?php namespace AppHttpResources; use IlluminateHttpRequest; use IlluminateHttpResourcesJsonJsonReso ...
As a newcomer to Ajax, I am facing an issue with deleting records from the database using Sweet Alert2. Although my swal is working fine, the ajax function seems to be malfunctioning. Can anyone point out where the problem might be and suggest a solution? ...
I am looking to enhance my Laravel VueJS application by allowing users to log in using their username and registration number instead of just an email. I have successfully implemented this functionality by modifying the username function within the Authent ...
https://i.stack.imgur.com/MJUOH.png https://i.stack.imgur.com/fDhJe.png A request sent via Http (fetch-XHR) enters a state of cancellation, but it occasionally functions properly. It appears that the initial attempt after loading the page is usually uns ...
Recently, I encountered an issue with image display on a Laravel 5.8 project. Although the image upload functionality was working perfectly, it suddenly started giving me a 404 error when attempting to display the uploaded image. public function store(Ima ...
I created a function in Laravel 5.1 that is meant to remove certain directories from the file system. Within the handle() function of the command class, I used shell_exec("whoami") and it showed me as the user raheel. However, the user raheel does not hav ...
Is it possible to update a variable in the controller using Ajax? Controller: $basl = array(2018,11,18,0,0); $deger = 3; $baslamatarihi=Carbon::create($basl[0],$basl[1],$basl[2],$basl[3],$basl[4]); $bitistarihi = Carbon::create($basl[0],$basl[1],$basl[2] ...
Can anyone provide guidance on how to display a customized article from a WYSIWYG editor using Vue.js? In Laravel, I am accustomed to using {!! $article->content !!} to show the full content. How can I achieve the same result in Vue.js using {{article ...
Imagine I have a straightforward API for user registration. This API collects basic information like Name, email, state, gender, and marital status for each user. I already have database tables pre-populated with ids for state, gender, and marital status o ...
Looking to set up a chat system using Laravel 5.4, Vue.js, and Pusher API with Echo. I have tried twice to establish communication with Pusher, but I haven't received any callbacks in my Vue component. I am working locally with MAPM. I have installed the ...
I successfully loaded Vue components in previous versions of Laravel by following these steps: In app.js located within resources/app.js, I declared the component like so: Vue.component('upload-menu', require('./components/UploadMenu.vue&ap ...
this is the code snippet that I'm dealing with: computed: { filterKategori() { var kategori = this.kategori.data.filter(f => { return f.induk == null && f.id_klasifikasi == this.id_klasifikasi; }); return kategori ...
The structure of my database table users is as follows: id email .... status // foreign key from tbl_status In the tbl_status table: id name description I want to establish a relationship where, if a user has a status of 1 in the users table, I can ret ...
Within the Laravel framework, I am developing a system where users can input criteria and retrieve data from the database that matches their search criteria. In the resulting table, there is a link labeled "request" in each row of data. When a user clicks ...
Greetings! I am relatively new to the world of Laravel and I am in the process of setting up a repository to consolidate repeated database calls. It seemed logical to centralize these calls for easier reference. Currently, I have a chained select feature t ...
Currently, I am delving into Vue and facing a challenge setting it up as the complete front-end with Laravel. In my current setup, I have created a personal blog for testing purposes using Laravel with Blade engine and incorporating some Vue components whi ...
I currently have a Laravel 6.0 application that allows users to upload files to a server and saves them in the storage file system of laravel. This set up has been functioning smoothly in an older Laravel 5.6 project. The link provided by the Controller l ...
Incorporating a Vue component into a Livewire component, specifically using a DatePicker component: <div id="customDiv" class="col-12 col-md-6 m-1" wire:ignore> <date-picker v-model="date" ...
Here is the structure of my models: Account -> Check -> Result class Account extends Model { public function checks() { return $this->hasMany('AppCheck'); } } class Check extends Model { public function results() { return $this->has ...