rezuankassim rezuankassim
1

Laravel query builder

Hi, currently I have a query that queried out the results of top 10 screen visited, and the results is such as below screens | visits Home |...

Jquery to regular ajax

This works, just quick test data: Controller public function testg5() { $dogid = 3; // hard coded for testing //$dogid = Request:...

Weird error on update

getting the following error on update Illuminate\Database\QueryException SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'Bulawayo' for colum...
Tomasz_Ek Tomasz_Ek
2

Stateful subdomains.

In my app I have many subdomains which all of them have own, non shareable cookies and own auth system. Subdomains use SPA app with is authenticate by Sanctum. In sanctum...
oussamaSid oussamaSid
1

Using Trix text editor with livewire

I'm using Trix text editor and when I'm implemented on livewire I have this weird error (nothing in the console...
ftiersch ftiersch
3

Custom directive in slot scope

Hey, I'm currently trying to use a custom directive (from https://...
Vue
3
457
santino santino
1

laravel nova nested relation ship - nova flex fields

After spending a lot of time I end up exploring NOVA INLINE RELATIONSHIP Thanks, people of KIRSCHBAUM DEVELOPMENT, This pack is mind-blowing if you are a programmer...
Nova
1
36
nspaul nspaul
1

Chronological List of Laracasts Videos

Is there a simple chronological listing of Laracasts videos on the site anywhere? I noticed that in the answer to the third FAQ question, there is a link to a supposed chro...
engsyam engsyam
4

Transform array of objects to array

Hi there, I have an array of objects retrieved from DB but I want to transform it to array take a look at this array:4 [ 0 => {#742 +"category_...

Passing javascript variable to component Laravel 7

I'm fetching data from Ajax after sending a form. The data is composed of multiple products. I would like to display all those product in a beautiful way in my html...
dinni dinni
3

Get websocket data in laravel controller

I have an external WebSocket link where im getting data. My requirement is to receive those data in laravel controller and handle them. How to listen in controller....
Jeremiah Jeremiah
7

I need help please

Carbon \ Exceptions \ InvalidFormatException Unexpected data found. Data missing because of this: $case->dateFiled = $request->input('dateFile...
Jeremiah Jeremiah
6

Please help me with a solution

ErrorException (E_ERROR) Call to undefined method App\Cases::diffForHumans() (View: C:\xampp\htdocs\blog\resources\views\master\cases\index.blade.php) Previous exceptions C...
General
6
101
JeroenvanRensen JeroenvanRensen
10

How to check if a URL is an article or just a web page?

Hi everyone, I've got a complex question: How to check if a URL is an article or just a web page? For example, nos.nl is a we...
General
10
153
JeroenvanRensen JeroenvanRensen
2

Check if a hasMany() relationship has at least one item

Hi everyone, I've got a products table and an images table. A product has many images. In my products/index.blade.php f...
devondahon devondahon
1

How to apply a gate to many routes at once ?

how to apply my custom gate accessBackend to many routes at once ? Route::get('/foo', function () { return 'FOO'; })->middleware('can:acc...
InaniELHoussain InaniELHoussain
13

hasManyThrough problems with SoftDeletes

Well as the title says, I have 3 Models Patient (id) Operation(id, patient_id) and using softDelete trait Payment(id, operation_id) wel...
Eloquent
13
548
devondahon devondahon
4

Remove Laravel user session after Laravel Passport sends token to a frontend SPA app

Where should I call my deleteUserSession() method below after Laravel Passport sends back a token to my SPA frontend ? publ...
devondahon devondahon
1

How to invalidate Http sessions ? (3 questions in 1)

1. What does Session::forget() method change in the session table ? 2. When I try to invalidate all sessions for a given user...
torriv torriv
1

Homestead with type NFS not working

windows 10 pro Laravel/homestead version: 9.3.0 VirtualBox version: 6.0 Vagrant version: 2.2.6 i've been trying to fix this this whole day now and...
Laravel
1
236
Naysoewin Naysoewin
3

Default User Avatar Toggle in Laravel

Hello, public function getAvatarPathAttribute($avatar) { return asset($avatar ? : 'https://www.gravatar.com/avatar/'); } If...
divinulledivi divinulledivi
6

How to sort model by relations' last record.

I have built a table showing currencies, their codes and latest rate. I want to be able to sort the table by these columns. I can sort by code just fine, but I'm having tro...
shanedeconinck shanedeconinck
1

Custom authentication using SessionGuard

Hi I'm using Laravel 7 and did the Auth scaffolding. I'm happy with all the Session Guard functionalities, but instead of using the database I have to authenticate t...
CosminAndrei CosminAndrei
6

Detach if checkbox is unchecked

Hello guys. I have a pivot table with 2 foreign keys (product_type_id and file_id) for make relation with 2 tables(product_types and files table). For each file I c...
Laravel
6
120
c4ost c4ost
1

Route does not redirect to method

Hello. I have a problem with route redirecting. I define route to the controller create method: Route::get('/posts/create', '[email protected]');...
Oldenborg Oldenborg
15

Separate controllers for API and WEB

With the new release of Laravel 5.3 Im building an application with both an API and a WEB interface. Should I make seperate controllers for API and WEB? Lets just us...
Laravel
15
3716
shami003 shami003
14

Records not deleting with foreign key constraints

I want to delete product when the auction is deleted. I have used the foreign key constraints but the product is not deleting. public function up() {...
Laravel
14
101
mustafaabdujalil mustafaabdujalil
4

Swagger with Laravel

How can i use Swagger with laravel ?!! any tutorial or article ? Thanks...
Laravel
4
3753
vidhyaprakash85 vidhyaprakash85
3

Fetching count in eloquent pivot table

I have users table and jobs table User Table id, Name, Email, Password etc Jobs Table id, Title, Description etc Pivot table applied_jobs...
baguzzzaji baguzzzaji
1

Protect a file from unauthenticated user on Digital Ocean Spaces

I have a laravel app that store some files on Digital Ocean Spaces. I make the file public, but is it possible to filter only authenticated user to download the files?...
shing_shing shing_shing
3

PHPSpreadsheet removes existing macros

I am writing on an existing template with macros. After saving it, the macros are all removed. Do you have any hacks in mind? #PHPSpreassheet...
General
3
185
LasseHaslev LasseHaslev
19

Vue.js and SEO

Hi, I have followed the screencast "The vast world of Vue.js". I love the simplicity of the framework and i would like to make use of the frame work of my sites....
Vue
19
2023
santino santino
4

how to get a record?

I use this code and get this return $info = $curso->sections->first(); { "id": 1, "course_id": 1, "sort_order":...
santino santino
9

HELP, convert string to json... ?

HI, please I am trying to get out the information of this string I save this string in a field of my data base [{"layout":"information&...
shami003 shami003
1

I am getting error in deleting records

Hi all, I want to delete a product in an auction. I am getting the following error: The DELETE method is not supported for this route. Supported methods: GET...
Create a New Discussion Button