vendredi 28 juin 2019

SQL error when loading empty laravel blade file

This is an app that previous developers have worked on and might have something hidden I'm not aware of.

There's a simple route that uses no middleware and loads a view.

public function index(Request $request)
{
    return view('media');
}

This returns

SQLSTATE[42S22]: Column not found: 1054 Unknown column

This happens even if media.blade.php is empty and stops happen if I comment out return view('media').

This is media.blade.php

@extends('layouts.app')

@section('title', __('Files and Links'))

@section('content')
    <media :privacy=""></media>
@endsection

Even when I empty the file it's the same.

Where can queries be happening if that's all there is?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Xg5qNO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire