This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

xyz.qtc63355
xyz.qtc63355

$project_exists = Project::where('slug','=',$this->param('slug'))->exists();

Whats wrong with this query? It's always 1, even if a the project doesnt exist!

xyz.qtc63355
xyz.qtc63355

Project::where('slug','=',$this->param('slug'))->first();

And why do I get the first entry all the time with this query?

mjauvin
mjauvin

Something is wrong. Show your Project model class source code

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.