skip to Main Content

SQL generated by Laravel doesn't work, but if I run the SQL direct on PhpMyAdmin it works

I was trying to get the name of Users in my system and I use the following code on PHP Laravel: $course_assessments = CourseAssessment::where('canvas_assignment_id', '=', $canvas_assignment_id) ->join('assessment_submissions', 'assessment_submissions.courses_assessments_id', '=', 'course_assessments.id') ->join('users', 'users.id', '=', 'assessment_submissions.evaluated_user') ->groupby('users.name') ->get(); When I run the…

VIEW QUESTION

.htaccess causes redirection – CPanel

Hello there I have 2 folders inside public_html ex.(mainfolder and subfolder). Inside my public_html same level with my 2 folders, I have an .htaccess file like this. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteOptions inherit Options -Indexes…

VIEW QUESTION

Laravel 8 – friendly url that call multiple controllers depending on match (products, categories, pages) – How to design it? – SEO

i would like to build a route that catch clean seo friendly url and call correct controller to display page. Examples: https://mypage.com/some-friendly-url-separated-with-dashes [PageController] https://mypage.com/some-cool-eletronic-ipod [ProductController] https://mypage.com/some-furniture-drawers [CategoryController] So I have in app route: Route::get('/{friendlyUrl}', 'RouteController@index'); Each friendly url is a…

VIEW QUESTION
Back To Top
Search