Meenachinmaylaracasts Meenachinmaylaracasts
0

Is event driven microservices in laravel/lumen are nightmares?

Can anyone help me with event driven microservices in laravel/lumen? i need to learn event driven microservices, so can anyone guide me through this with laravel. wh...
zfdeveloper zfdeveloper
5

State and city with select2

Has anyone used select2 for state and city? I want to put two selects, one for states and when the user selects the state it will call the api for the cities of that state...
zfdeveloper zfdeveloper
1

Laravel and Vue (in Forms)

I need to create forms and I would usually just create the html using bootstrap and send the POST to the controller but I need to add a few things such as image upload (wit...
zaster zaster
0

Automatic Backup is Not working

I am using Laravel 5.5 with Spatie Backup I need to do something like this app\Console\Kernel.php protected function schedule(...
daniel21gt daniel21gt
1

Problems with translation eloquent, laravel 5.5

What's up friends. I have tried to transcribe this query to eloquen, but it has been difficult for me to do it, does anyone know how I can fix it? select usua...
mihirpatel83 mihirpatel83
1

Search word within JSON field

I am storing values in a JSON field in below format { "1":{ "value":"John" }, "2":{ "value&...
DerManoMann DerManoMann
2

hasManyThrough with morphMany

Relationship: [A] -> hasMany() -> [B] -> morphMany() -> [C] So I would like to access all [C] on [A] via hasManyThrough, but that seems not possi...
DerManoMann DerManoMann
7

Relationship from query?

Hi there, I've got this model method that I would like to convert into a proper relationship. Is that possible? Basically I want to convert the query into a Ha...

Using Laravel to display movie collection DB w filters?

Hi All, Front-end developer here looking to make a database challenge for myself: I'm thinking of creating a database of my disc-based movie/tv collection (I...
Laravel
12
329
Kish77 Kish77
10

Export Buttons won't display on Datatable

Hey all, I have a data table that uses ajax processing to display data. The information is being displayed but the export buttons are not showing. Can anyone assist me?...
nhayder nhayder
7

Change app default locale dynamically

i'm using mcamara localization package https://github.com/mcamara/larave...
Laravel
7
121
twg_ twg_
3

Autopublishing Laravel app with .env

Hi, I'm using forge to push out my first project. When I push to my repo of course the .env file is left out since it's my production .env file. What's the best wa...
Forge
3
30
getupkid getupkid
11

Customize Laravel Login Throttling 5.4

Is there a way to customize the max login attempts and how long the login is locked for on the LoginController? I tried maxLoginAttempts() and lockoutTime() methods from wh...
Laravel
11
1994

Mobile App

It's probably been suggested before but I would love a mobile app (Android specifically) for watching Laracast on the go. Offline viewing would be recommended for times wi...
Otto09 Otto09
3

ErrorException: Trying to get property 'id' of non-object.

It's about episode 14 of Laravel App with TDD (Birdboard). I'm using Laravel 5.8, I can't fix it, on tests it doesn't update at all. If I try it in the browser it does all...
paul-a-byford paul-a-byford
2

Elegant eloquent where

Hey everyone - what more elegant ways would you recommend solving the following. Context - project management app. Each project has team members, team members have a...
Crash Crash
3

dependency injection problem

Hi, i'm working in a really huge project, this feature that i develop is really big and requires a lot of classes. I'm using the service container to manage this cla...
successdav successdav
6

Npm run watch displays error after compiling then stops watching

It compiles up untill 95 percent then displays DONE Compiled successfully in 32854ms 3:57:42 AM Asset Size Chun...
Mix
6
74

Objects in Session with methods

I found quite by accident that while writing a test to store and retrieve an object id, and I had actually (accidentally) stored a complete object on the session. ED...
fedmex fedmex
2

Custom search

I have an extra column in by table that is stored as a hash in the database. I can't add it to the searchable array, because it won't hash the search query then. Also I don...
Nova
2
23
fedmex fedmex
2

Testing with guzzle

Hi, I have a controller that does an api request to some api using guzzle. How can I make a test for this in Laravel?...
SlimDeluxe SlimDeluxe
1

How to set up a modular project?

Hi, I am planning to refactor my modular application from CodeIgniter 3. I decided to give Laravel a try so I am asking for general tips how can I achieve the following:...
EvergreenWebSystems EvergreenWebSystems
1

updateExistingWithPivot

Is there a shorter way to do the following? public function updateProject($project) { Project::update($project); Project::find($this-...
SYPOMark SYPOMark
14

Add image upload field to a form in Laravel Spark

Hi there, I've been trying to adapt an existing, functioning form by adding an image upload field to it, but, so far, without success. My starting point was t...
Spark
14
385
andreasb andreasb
15

Guzzle Error Message gets truncated

Good evening, sometimes I get an error message while calling on an API using Guzzle. What drives me crraaaaaazzzyyy is the fact that the important part of the...
General
15
6153
Hitostacha Hitostacha
0

Web guards for views, using API authentication coming another Laravel App

So basically I'm trying to use a Laravel app (as front) to connect to another Laravel app (it's something centralized providing RESTful API), I already set up passport and...
successdav successdav
6

Help me refactor this code its a bit lengthy

All am doing is: When creating a new learn and setting the order number, check to see if there already exists an item with that order if so increment the order. The...
General
6
268
coolpraz coolpraz
4

cant validate otf format

i made a form to upload fonts on server and i put validation rule only accept file with .ttf and .otf extension and its working with .ttf format but when i upload .otf exte...
Laravel
4
268
pilat pilat
0

Gluing up Socialite and a stand-alone SPA

Hi, my project is consisting of two separate apps: Laravel-based back-end An SPA, "living" separately and built using Vue CLI....
Chron Chron
5

How to pass multiple variables in withErrors?

Here's the validation: $infoValidated = Validator::make($request->only([ 'firstname','middlename','lastname', ]), [...
adamjmi adamjmi
3

Laravel Horizon only work the queue between certain hours

I'm building a site that requires the queue to be worked between 8am-8pm only as we do not want communications sent during any other time. My initial thoughts are to...
joveice joveice
8

A room can have racks, but the ID should start from 1 for each room

How can I have multiple rooms, these can have multiple racks, but room A and room B both can have a rack with the ID 1 (The ID does not need to be used) could be rack_id, j...
Laravel
8
124
ronon ronon
0

Get the currently active queue workers

I have app server who do a specific task, for example. Download a file from another server. Since this task can take some time i use supervisor with queues....
zerodps zerodps
13

@foreach loop not working? laravel 5.8.24 (WAMP) W10

Hello everybody, I'm working on the series "Let's build a forum with Laravel." In episode 3, Jeffrey displays the thread-related answers with a foreach loop. The...
chriz74 chriz74
1

Server not returning json

Hello, I don't understand what is going on here, I have a form that I submit through an ajax request. The same script works in another page while in this one I am working o...
Create a New Discussion Button