spacedog4 spacedog4
5

SoftDelete on polymorphic relationships

I'm building a activity feed in my project, but I also want to record delete activity, the problem is, to do this, I need to use softDelete in some models, in others I don'...
krios replied
Solved
Laravel
5
1141
fredmarks fredmarks
2

better way to validate an optional, nullable field

I have an optional form field, which, when it is filled, I want to check against the users table (if it exists)...
DaylightFox DaylightFox
3

How To Use GrapesJs With Laravel

So I could really do with a website builder, even a basic one that just allows the user to change images and text is good enough. I've found GrapesJs which looks lik...
Aqeel94321 Aqeel94321
1

Uncaught TypeError: Cannot read property 'call' of undefined

Hi! I'm facing this error on the JavaScript console and the page won't load, I'm using the laravel-mix to compile my styles and js into separate files, the problem occur wh...
Laravel
1
510
pjstew pjstew
6

How to use generatedAs migration modifier

I can seem to find any information on how to actually use generatedAs($expression) column modifier....
Laravel
6
114
Veleous Veleous
2

Storage of site wide configuration

Probably a simple and daft question, however ... When it comes to data that is used across the site and unlikely to change frequently (i.e. premise address, primary contact...
iamssingh iamssingh
20

Unable to migrate table using point datatype in postgres ?

I have a migration file which contains point datatype. It is laravel 5.8. While migrating I am getting below error. Illuminate\Database\QueryE...
Laravel
20
241
theUnforgiven theUnforgiven
2

User notifications Queued on SQS

Hi all, Hope everyone is having a good week... :) I have a question as this doesn't seem to queue up as SQS is 15 min $alert = Carbon::create...
JoeJobeh JoeJobeh
2

tailwind css is not completed in laravel 8 jetstream

I have a brand new laravel 8 jetstream app that doesn't have some parts of tailwind. ex: it doesn't have bg-green-500 and many other colors. how can I fix it?...
Snapey replied
Solved
Veleous Veleous
3

Data and props naming conflicts

When dealing with the naming of data and props in components, how do people deal with naming conflicts so that names still make sense but do not conflict? For exampl...
Vue
3
124

Error when $request->user()->cannot()

Hope one of you might be able to help me here :) I'm trying to validate if user is allowed to update a model, but getting the following error: Error C...
Snapey replied
Solved
Laravel
9
101
waltun waltun
10

How to change email field in login to username in laravel?

In my users table i have username insted of email and this is also in my register form. I overwrite username method in AuthenticatesUsers trait in LoginController to...
Laravel
10
160
dinni dinni
1

Live video streaming

Hi, Is there any way i can stream live cricket match? like paid providers or 3 rd party apis....
t0berius t0berius
3

livewire updating to v2.0

After updating from livewire 1.X to 2.X the following piece of code doesn't work anymore: switch (request()->query('filter', null)) { case 'af...
WCaaan WCaaan
1

Pivot Model Relationship with another table

Table structure of types: id, title Table structure of options: id, title, description Table structure of option_type: id, option_i...
CarlEOgden CarlEOgden
7

Laravel Send Mail::send - can both html & text be sent?

Hi I've got my emails working as HTML but, to reduce on these direct emails being classed as spam, would like to add a text version of the message but it seems this...
gianmarx gianmarx
3

tinker change data

I would like to enter 10 data for example and then change the status of two tuples how can I do? $a = Poll::factory()->count(2)->state(['status'=>'B...
taylorhoward taylorhoward
4

Laravel Mix common chunk and vendor chunk

I'm building a multipage app with Laravel v5.5 and using Laravel Mix v1.6.2 to compile my assets. I am defining an entry point for each page. I'm e...
dcabane dcabane
1

NPM packages in production, best practices ?

Hello all, I have a Laravel+Vue project hosted with Forge. I recently encountered problems with NPM packages when pushing my code to production and I wanted to see if there...

Installation failed, reverting ./composer.json to its original content

Hi, I would like to install the package spatie/laravel-newsletter on my version of LARAVEL 7, but I encounter the following error :Installation failed, reverting ./composer...
Viatori Viatori
2

Field id doesn't have a default value

Hey everybody, I have little problem... I created an action in laravel nova. When I click on it in local, i have an error : Illuminate\Dat...
Nova
2
23
MartinZeltin MartinZeltin
9

How to disable Laravel Mix but still use watch?

I really don't need Laravel Mix but when I delete everything in webpack.mix.js and delete app.scss file I get an error when I run npm run wa...
DNABeast DNABeast
3

Multiple Forge PHP versions don't reflect in code.

I've used Forge to install a version of PHP7.3 as CLI on my PHP7.2 server. Then I've got a project that has now been set under meta from php7.2 to 7.3 I've rebooted...
Forge
3
63
TollerHovler TollerHovler
5

Class SeeInOrder not found when testing component / blade

Hello! I'm trying to write tests for a few components but I stumbled upon an issue. I'm attempting to use the SeeInOrder assertion on a component. I have tried a few...
JoeJobeh JoeJobeh
1

what is @livewireStyles

what is this one in livewire? is this a stylesheet CSS cause I don't see any effects on my styles?...
phoenixg phoenixg
1

How do I upgrade illuminate/database from v4 to v8(currently latest) ?

I use illuminate independently (without laravel), I have many eloquent models, how do I upgrade them from v4 to v8, because v4 does not support highest version of PHP, so I...
reviewdevs reviewdevs
3

Which is better, Spatie Permissions & Roles or using Middlewares or Policies?

Hello, am trying to make something like Udemy as practice after finishing some courses here on Laracasts I'm trying to fix a problem where I want to allow users who...
jjmu15 jjmu15
2

Opposite of assertJsonFragment

Hi, Apologies if this is a silly question but how would I test for the opposite of assertJsonFragment to be sure that a record is not returned within a resource coll...
sangramss sangramss
6

Homestead

Hi I have been trying to install Homestaed on Windows 7. I have followed the steps given in the documentation. But I can't seem to get it to work. Vagrant up gets stuck at...
Laravel
6
236
pickab00 pickab00
2

Where clause in Polymorphic Relationship

I have 2 tables. 1 is the polymorphic table and the other is a simple posts table. Here: posts: - id - title - detail viewable: - uuid - viewable_typ...
mleontenko mleontenko
5

Raw SQL query to array

I'm using a raw SQL query that selects some ids from database. It looks like this: $query = DB::select('SELECT pr.id_obrasca_prethodne FROM public.&...
isamirsalehi isamirsalehi
2

How to set suitable name for routes

Hi guys. Maybe it happened to you before that you were thinking about what name i should set for the route that you've defined. My question is how can i set a suitable name...
marionkringalpha marionkringalpha
1

How can I add a Question Section in any product Pages?

Hi Community, I hope you are well. No I want to add a question section in any product page by using JS like that:...
christonic christonic
3

Errno: 150 "Foreign key constraint is incorrectly formed"

Greetings, I've been working on this little project for a little while. I have a couple of related tables where a projects table is linked to a teams table so if my...
Create a New Discussion Button