lundi 30 mai 2016

Base table or view not found: 1146 Table in laravel

i was create one model file and try to fetch the table data using model. every time it's show below error

"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel_student.students' doesn't exist (SQL: select * from students)"

controller file. it's look like to the following

namespace project1\Http\Controllers;
use Illuminate\Http\Request;
use project1\Student;
use project1\Http\Requests;
class StudentController extends Controller
{


public function index() 
{

    $students = Student::all();
    return view('student_form',compact('students'));

}
}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/25vFETm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire