I have very basic problem. In L4 thes below methods worked out of the box, so now I am lost. Please help. A few days ago I started a Laravel 5.0 project. I have now fresh, clean installation.
Problem 1: When I try to get anything from database
$headquote = DB::table('quotation_texts')->find(176);
I get this:
Class 'AppHttpControllersDB' not found
Problem 2: Before I cloned the User.php Model, changed Class name to "Quotation". Below is the content of file Quotations.php put in App root folder:
<?php namespace App;
use IlluminateDatabaseEloquentModel;
class Quotation extends Model {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'quotation_texts';
}
Any attempt to use the model
$headquote = Quotation::find(176);
ends up with this:
Class 'AppHttpControllersQuotation' not found
Any ideas how I could resolve the issue?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…