title: Laravel : How to check if table exists in database on view file
body: <p>I have an index file which is view file. In this view, I want to show the records of <code>temptable</code> <strong>if only that table already exists</strong> and if it does not exist yet, then I don't show anything. For your information, this <code>temptable</code> can only be created only after the user <strong>submit form</strong>. So, if a user submit a student form, <strong>Laravel will create a database table with columns based on the form submitted</strong>. I need to check if the table already exists in the view to determine to show or not to show the records. I have seen the solutions out there (like with Schema, etc) but I don't think it will work for a view file. Is there any way I could check if database table exists on view file?</p>