Best way to handle huge insertion in laravel considering both timeout and memory issue

Currently, I am trying to insert data to the database using Laravel Queue. This is importing data from csv formatting some columns and the finally dump to the database....

Resources Routes: Show Data by referencing a column name except `id`.

Route File : Web.php Route::resource('projects', 'ProjectController'); Model File : Project.p...

laravel schedule:run is not working on server(via cron jobs)

Hello everyone, I am trying to run schedule run command on server via cron job. I used following command usr/local/bin/php /home/nemanu/root1/artisan schedul...

Workers concurrency

I have a parsing job that is started by custom artisan command and I runed it 3 times for concurecy with deamon workers. So I have 3 workers working at a time, but now I ca...

Consume same API for both web and mobile or not?

Lets say I am building some large application ( multi-page app ) . And laravel will allow me to make an API and a website...
Laravel
8
116

Filter multiple results from database in view

I currently have a user table full on info 'birthday', 'gender','state', etc... and I want to learn how to create a dropdown selections to filter the results s...

User Providers and Guards - double check data?

I am studying the implementation of the 2 interfaces mentioned in the title. In the SessionGuard you can find the following lines in the attempt function:...

Riddle me this (PHP Error: No property on object)

Long time no speak to some of you. Okay, so we use LDAP for authentication at work on our internal server (intranet). I've come across an issue on a new application for one...

Pass parameter from Laravel controller to React Component Initial State

I have a model called Ts (timesheet) and a controller with a route of example.com/ts/5 to open ts with id=5. I have a ReactJS Compoment that displays one ts. I...
Laravel
4
313

Ternery operator help

I am laravel beginer. i am not able to understand this code. <option value="1" {{ !empty($make->status)?($make->status==1)? 'selected':'':'selecte...

Specifying the server port in Envoy

As far as I can tell there's no way of specifying the SSH port to be used when writing envoy tasks. Can anyone confirm this or point me in the right direction to being able...

Login Account with Something Else

Hi, I want to implment login for Admins and Students, and they are in two separate tables. However, the Students will be logged in with their Students Code and Exam...

How can add CSRF token in axios post?

Hi, Server rejects my request because not contains CSRF token but I have not a tag for include it: <select class="form-control form-control-sm"...
General
11
63

Remove route param from being passed to controller.

routes/api.php Route::prefix('v1/clients/{client}')->middleware('auth:api')->group(function () { Route::apiResource('patrons',...
Laravel
11
47

Returning Eloquent Data for Chartkick

According to Chartkick docs, it can read data in following formats: <pie-chart :data="{'Blueberry': 44, 'Strawberry': 23}"></pie-chart>...
Vue
1
10

Does any time series adjustable chart package exist for Laravel?

Is there a Laravel package that would make it easy to implement time series data charts like this one:...

Accept & save paypal credit card details from application's custom interface(Not from paypal UI)

I have a rest api for an android app , that has feature of online payments , I want a customer to enter his credit card details from android app's UI , and these details ar...
Laravel
18
118

All Laravel Versions with Documentation

Is it possible to get all laravel versions from Laravel 1.0 (With Documentation). To see how it has evolved ?...

Correct way to save changes to an eloquent relationship

This question has a few parts. I'd greatly appreciate your help with any or all of them, since all the advice I was able to dig up was incomplete. I'm looking for so...

Select and open a node that is just created (jstree)

I am using jstree to organize groups. I have ALL GROUPS (root node) and children (groups). When I create a group (I am using form) I want to load jstree and automatically o...

"Overriding" data retrieval methods for a model (v5.2)

Due to a change in a 3rd party database which cannot be modified, for every call to get(), first(), or any other data retrieval methods on one of my existing models I need...

jQuery is not loading into project

Hi, I have tried to get jquery working but I am failing. I took the basic laravel installation that includes already bootstrap for the User/Login and just to be sure instal...
Mix
0
17

Laravel Job doesn't get scheduled with delay()

I am trying to schedule a job in the queue as described in the example here but it's getting processed immediately....

view my valet sites on my iphone without valet share

Hello, is it possible to view my valet sites on my iPhone? (on the same network of course) I know I can use valet share which will assign me a ngrok.io URL whi...

How do we turn event handling back on for test after ->withoutEvents?

I have a class that emits an event which ultimately sends an email. For most of the tests for that class, I don't want an email sent, so this is my setUp function:...

dompdf in laravel

I have a problem with dompdf package when i use loadView its download a blank page this is my function public function downloadPDF($id) { $pdf = A...

Three tables connected - How to do with hasMany?

Hi! Can someone show me how I can handel a database table model where I have three tables. User with user id (Laravel Table) Rights with rights id (my...

condition inside query builder

I need to have an condition inside an relation query builder $jobs = Job::where('disabled_job', '=', '0')->with(['positions' => function ($queryPositi...

Multiple Domains w/ Single Laravel Install

Sort of consolidating a few questions that are old, unresolved, and kind of in keeping with my own problem. Routes file: echo url()->current() .&qu...

Syncronous queue not running failed() method, or adding to failed_jobs

I can't seem to get a failed() method on a queueable email job to run, nor does anything appear on the failed_queues table populate on the fail. I...

How to build an MLM software with laravel

I have been learning laravel for like a year plus now through laracasts of course, now am been approached by a client to build an mlm software using laravel, can I really b...

Alternative to using Command system

A colleague told me that Jeffrey has changed his mind about using a command system for complicated or large processes, for example like the...

Encrypt a password in database update

Hi guys, sorry for my english. I have a problem in a Laravel project, I want to update an user's password, but when I do it, the password is not encrypted. I put here my up...

Call to a member function connection() on null

Hi everyone, I am facing a challenge that I'm not sure what to do with. I have a bunch of pages that work, but periodically I get this error: Call to...
Laravel
5
594

404 error

hi guys i am using laravel 5.7 i want to make areset link and i want to accept email addres after i accept the email the route thaat i use ives me 404 error the vie...
Create a New Discussion Button