jaheller jaheller
4

show "logged in" sessions / logout single session

Is there a way to show the user all sessions for his account (current logins)? Looking for a way to list the current sessions of a user / option to "logout"...
Nospoon Nospoon
15

Using facades with interface binding

Does anyone know if it's possible to get facades working when binding to interface in the service container? So let's say I have a binding like this in my service pr...
Laravel
15
143
CanadianDeer CanadianDeer
3

Validation rule unique requires at least 1 parameters

Hello, When i want to make a put request, à have this error: Validation rule unique requires at least 1 parameters I don't understand besause all my fields h...
rob_utopano rob_utopano
12

Getting exception while looping through models

Hey guys, I have a problem when trying to execute a job which looks for unused objects. My code is the following: $connection = config( 'broad...
Laravel
12
70

Controllers and auth middleware!

Hello, Supposing a controller that is using the auth middleware, and the index() action has a service injected that is responsible for the logic about which controll...
Laravel
7
109
Aktheon Aktheon
3

Eloquent complex relationship with filter

Hello. I've read documentation few times and can't figure out the following problem. I have 3 tables: 'accesses' table with columns: id, product_user_id 'prod...
ARCANEDEV ARCANEDEV
16

[Package] LogViewer (For Laravel 5)

Hello artisans, I recently published a package to view and manage your log files. https://git...
General
16
937
andersb andersb
0

Saving API usage for metered billing

Do anyone use a good package for saving API usage in Laravel? We would like to save the API usage for our users and potentially implement a metered billing at some p...
tannerhearne tannerhearne
5

Laracasts Auto Movie Mode and Autoplay - User Script

Hey Laracasts Viewers, I generally like the full-width view of the videos in Movie Mode more, and I realized I kept clicking more to play the videos, when I just wan...
General
5
160
petritr petritr
4

Filter Model entry laravel collection

I need to go though each entry where some condition it meet. I have all conditions in an extra array, the array can have more or few keys: array:2 [...
daniel.schreij daniel.schreij
8

How to refresh X/CSRF token after logout in SPA

I found some previous questions about this topic (such as...
Laravel
8
886
gawest gawest
0

Update Nova cards with Vue

Can't find anything related to my question so maybe anyone here can suggest something. My goal is to redraw Nova cards after filtering my model. So after choosing something...
Nova
0
18
bufferoverflow bufferoverflow
0

Embed Laravel app to hybrid app

I have a Laravel website which I want my users to be able to download an "app" version from the Play Store (Android) and App Store (iOS). My idea was to bu...
Tips
0
26
milroy milroy
33

301 redirect to non index.php url

Laravel allows to visit a page with /index.php. How to remove and [301] redirect to page without /index.php e.g. abc.com/index.php/contact to abc.com/contact...
General
33
2262
EvergreenWebSystems EvergreenWebSystems
4

updateExistingWithPivot

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

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (SQL: delete from `jobs` where `id` = 2592546)

Hello. Using latest Laravel 5.7.21. Every 1-2 minutes i have this error in my laravel.log file. I don't know what is happening. Full trace: [2019-01-24 00:21...
Laravel
4
558
Aktheon Aktheon
2

Building request for input array

I've seen widely used this structure $a = Products::find(1)->accesses()->get() Can i somehow get relations for multiple rows or some condition. For some...
Russuo Russuo
5

One to One relationship from the same table

Hello everybody, I have a table of people called 'members' table. From the members, I need to create relationship between different people as spouses. So I created a...

Use 2 tables to sign user in with

Hi all, I'm working on an application where I have users and a user has clients. But the client should also be able to sign in...
elle3141 elle3141
2

Refactored resource controller and now routing does not work

Hey all. Previously my model and controller were called the following: Model - Returns Controller - ReturnsController The model sho...
DNABeast DNABeast
2

Adding a cache flush command whenever an update is made.

I need to flush the cache whenever an update is made on a model in Nova. Should I be overriding the update method? (And if so, how?) Or is there a better way...
Nova
2
35
CanadianDeer CanadianDeer
4

Error Array to string conversion in my form

Hello, I have in my form a multiple select. When i click to my submit button I have this error: Array to string conversion I want to push values in my column activite in my...
raviteja155 raviteja155
3

Eloquent relationship collection with name 'links' returning null

I am running the following query $course = Course::with(['batches', 'tags', 'links'])->where('slug', $slug)->first(); // when I dump it, I see #relat...
mohammed_alama mohammed_alama
8

SQL cannot add forign key

Hi i have error when hit artisan migrate:fresh to add forign key of user in projects migration it show me that error Illuminate\Database\QueryException...
aswinghosh aswinghosh
5

My laravel is not working

My laravel app nor working in godaddy server the url is like this...
Laravel
5
126
aswinghosh aswinghosh
2

not returning

namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use I...
Laravel
2
134
brayniverse brayniverse
1095

Where are you all from?

I'm wondering how far Laravel's reach extends to. I hail from London myself....
General
1095
17886
saleem_hadad saleem_hadad
25

Larecipe - Write gorgeous documentations like Laravel.

Salam everyone ☺️ I just want to share my new package called Larecipe, used to create nice looking documentation like Laravel docs....
General
25
1061
toneymutinda toneymutinda
1

Check DB Connection Before Running Any Tests

Hi, Am looking to see if my app has successfully connected to the database before running any tests. The first thought was to check the connection in the constructor...
utpal2015 utpal2015
3

How to check a specific data exists on a relationship?

I have User, Shop and Product model on my app. And relationship like this: User public function...

Socialite delete connection

I was wondering if anyone else looked into how to use Socialite for disconnecting the link between a social provider and my Laravel site. Two use ca...
Gabotronix Gabotronix
1

Shuffled objects of arrays and showing named keys on v-for loop

Hi everybody, I have a getter wich takes a collection of posts and groups them by month creation, after some help from the community I got it to work but I found two issues...
SeptianMY SeptianMY
6

make the first button click, and click the second button but it's on 1 button

I have 1 problem in the code, if I click the first button then he checkin, but if he clicks the button the second time he checkout. but this button is on 1 button instead o...
jeremihza jeremihza
5

Route [fileUpload] not defined. (View: C:\wamp64\www\ckcmain12\resources\views\layouts\dashboard.blade.php)

Route::group(['middleware' => 'web'], function () { Route::get('fileUpload', function () { return view('fileUpload'); }); Route::post('fileUpload', ['as'=>'fileUpload...
buffthus buffthus
4

Socialite FB Login

When I am trying to login with Fb in an incognito page. But no all the time. Laravel \ Socialite \ Two \ InvalidStateException No message...
Laravel
4
140
Create a New Discussion Button