Scheduler not working after moving servers

Hi all, I've moved a Laravel app to a new server. Previously the scheduler was working fine and running the jobs set in Kernel.php at their correct inte...
andyandy andyandy
9

Printing table without knowing column names?

I want to do this. //controller $randomTable = Articles::orderBy('id', 'desc')->get(); //blade @forelse($randomTable as $item) <tr><td>{{$it...
number6 number6
0

MorphToMany with millions of rows?

I've been building out my models & migrations for a new project. Within this app, a user can create many types of lists, we'll say there is a list type 1-9. So the stru...

Laravel Passport Unauthenticated after composer update

I posted this question on stackoverflow last night, but there has been no activity. Wondering if someone on here could help? I've been working in this application fo...
santino santino
2

how to +1 to DB

Hi , I want to add +1 to the counter of the DB but how?? got this public function addGuaranteeTry() { $this->update( [ 'guarantee_trys' => // here g...
santino santino
2

HELP!!, HOW to RETURN the attached object created?

HOW to RETURN the attached object created? return user()->providerConnections()->attach( $provider ); this code creates a new record o...
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...
mariojg replied
Solved
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...
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...
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...

Stopped Executing the likes of this command like php artisan migrate

Kindly help me to resolve this issue I cannot issue any command like php artisan migrate It is throwing error - In Application.php line 598: strpos() expects...
vildanhakanaj vildanhakanaj
0

Developing part of a project into laravel.

Hey guys, Hope I can find some answers or some guidance in the community regarding a problem I'm facing. I never had to do this before so its kind of new and I don't...
cluel3ss cluel3ss
1

Redirect unauthenticated user dependant on guard

I use both standard auth and custom auth guard labelled business_user in my app. All my "business" routes are prefixed with business. in...
GillesDeb GillesDeb
8

.htaccess setup - PHP practitioner course - Make a router (ep16)

Hi all, I'm following the PHP Practitioner course, but experience difficulties to set up my router according to ep. 16. I tried to configure the .htaccess fil...
tavares tavares
9

Laravel - blade append section

Hi, i need to run a js script in a subview, so i have a section with all my scripts and in the subview i try to append my script to the existing scripts. HTML PAGE:...
carltondickson carltondickson
5

Is PHP a pre-requisite for Homestead?

Hi, We're using Homestead in one of our PHP projects and from what I can see in the documentation you don't need to have already installed PHP. Our process is...
reviewdevs reviewdevs
1

How to handle authorization if you have many to many based roles and permissions

I wanted to make roles and permissions to be as dynamic as possible, here is what I made on Diagram.io...
automica replied
Solved
AlexSteele AlexSteele
8

This should be simple.

I just saved a new model, and the id is an autoincrement. how do I route to open the record I just made? on the controller, and I know I need SOMETHING I just don't...
JacobFHolland JacobFHolland
2

Laravel claims a model is not found (but it definitely exists)

I am currently following the TDD birdbox videos and am experiencing an issue with Laravel claiming that the Project model cannot be found. I am on the very start of it doin...
gymdone gymdone
0

L7 Vuetify SPA into L8, Jet, Fortify, Interia

I have a L7 app in development that uses Vuetify SPA with vue-router setup and working. Currently I have login and register auth working via axios into the L7 api.php endp...
Boggimedes Boggimedes
17

CSRF started failing in my dev environment

Saturday, everything works fine. Sunday, no changes, but now every form I submit returns a 419 error. Revert to master branch: Same issue (the same branch that is cu...
andyandy andyandy
2

Remove ?page=1 from paginate()

I had this problem: blah.com/articles //my main article page blah.com/articles?page=1 //is duplicate with previous page blah.com/articles?page=2 blah.com/art...
Chets83 Chets83
3

Where do I start?

Hi, I'm new to PHP and Laravel, I have a basic understanding of PHP and would like to learn more, can you offer me a suggestion on where to get started, should I sta...
jlrdw replied
Solved
moses moses
101

How to write code in laracast?

I want to write code that cleanly. So nice views. How can I do that?...
Assistance
101
5677
schwartzmj schwartzmj
1

Help using orderBy on nested relationship query

I have a Livewire component that generates an HTML table where you can click a table header and sort the data. It also has a text input that you can type in to filter the r...
cluel3ss cluel3ss
11

Cannot run database migrate command on new instance

I have spun up a Droplet on DO using the LEMP stack to get my Laraval app up and running. I am having some issues running the artisan migrate command. T...
AlexSteele AlexSteele
2

attaching a json file to url string

I need to generate a url string that can feed a json file to another service that consumes it, and to generate something like this: mywebname.com?sendOut=16006281753...

Error in BusServiceProvider.php after upgrading from Laravel 7 to 8

I have two projects, one of which I upgraded from Laravel version 7 to 8 without any issues. However, I have upgraded my second project according to the instructions...
schwartzmj schwartzmj
7

Help building a query or using Eloquent

I'm having some issues creating a query and structuring my data for a view. I have a User model with role family that hasMany...
schwartzmj schwartzmj
7

Dynamic/conditional relationships

My app is fairly simple, so I decided to hardcode 3 different roles onto users: 'family', 'agency', and 'admin'. family users hasMany appli...
TerrePorter TerrePorter
6

Laravel 8 - route controller never loads

I have a new install but for some reason the i cant seem to get any other route to function, except the jetstream routes those work. Route::get('test', funct...
Snapey replied
Solved
raza9355 raza9355
1

store multiple data in multiple column on post laravel

this is my controller what i have tried public function getTranslation(Request $request){ $dataa = new trans(); $lang = new language(); $d...
kylemabaso kylemabaso
8

Illuminate\Contracts\Container\BindingResolutionException Target class [UserController] does not exist.

Hi Guys, I'm new to Laravel. I started working on Laravel 7 a week ago, built an API and everything is working fine. I attempted to recreate the same API with Larave...
schwartzmj schwartzmj
5

Run validation on model already stored in database

I'm looking for a way to run validation rules on models already stored in my database. When searching for this, every resource that I find has to do with validating incomin...
Valediode-14 Valediode-14
4

web pages

need to develop a web pages...
Create a New Discussion Button