Laravelish pattern for non-table backed classes

I'm wanting to simplify an Eloquent Model by extracting some logic into a separate class. This Model has a couple complex attributes (i.e. JSON blo...
02

Axios make double request to my server in my network tab

Any request i make axios make double of it my app.js import Axios from "axios"; window.axios = Axios; my...
04

Static methods in controllers?

Hi, I have a couple of methods which are in my controller, which I want to refactor out. /** * Just looks for this part...
02

Laravel search routing

Hey guys, I'm developing an application that has some basic search. When the user navigates to /search, they will see some...
03

How to pass a PHP variable into a Laravel helper

Hi guys, I know that this is basic question but I really want to know how to pass a PHP variable into helper {{ url() }} <?php...
01

Odd CRUD issue

I'm having a odd issue with my CRUD on Laravel 5.4 and PHP 7.1. When developing via "php artisan serve" my CRUD works flawlessly however...
03

500 Error when i try to destroy a Session

Hello, im training with the Laravel 5.4 From Scratch: Associating With Users: Part 2 tutorial. Now i have a Problem and cant find the...
01

Question about Repository Pattern

Hi, Is it ok to do this in a repository class?: public function update(Request $request, Message $message) { $message->...
02

laratrust laravel 5.4

Good afternoon, I'm trying to install the laratrust facade, but I've encountered a problem. I performed all the steps until I run php...
02

Continue Event firing?

I implementing event but problem is that it should fire once(I using running command php artisan queue:listen) when I hit the action , but it's con...
00

Override FormBuilder

Hello, I would like to replace a function inside the FormBuilder package. It work's but the method's and token hidden inputs are empty? Plea...
00

how to specify laravel Authorization Routes in socket io

I know that when using pusher as broadcasting driver, to specify /broadcasting/auth laravel Authorization Routes can...
00

Subscribe to dynamic laravel channel via redis

I want to broadcast an event on dynamic channels in larvel. To broadcast on a specific channel I tried...
00

Event not working?

my controller use Event; use App\Events\StudentAbsent; $studentss = Student::whereHas('studentattendence',function($q) use($date){...
03

How to: custom controller function in loop

I have a gallery app and the show page for "Gallery" shows thumbnails of images from a gallery_images table/model. I need to be able to...
01

Laravel Call to a member function send() on a non-object

Hi I am trying to send a mail using my laravel controller, a very simple mail which is sent in my localhost with no problems but once in ser...
00

How to loop through to get the values within prediction

public function getLoc(Request $request) { $response = GooglePlaces::placeAutocomplete('Ayeduase')->toJson(); foreach ($respo...
02

Delete form inside foreach

I'm doing a small project and most of the view have a link to the destroy method of the model. I end up with something like this:...
00

Etrepat Baum Soft Delete and Complete Restore

I'm using Etrepat/Baum and I want to use soft delete. For the soft delete I don't have problem, simply: $node = Category:find ($id);...
01

Messaging system, using id's security

Hi, I've built my first basic messaging system using the below database design that I found here...
01