app/Http/Controllers/SubjectController.php
/*for security and other reasons i will omit the url to create subjects
        /*
         * Display all data
         */
for security and other reasons i will omit the url to create subjects
Display all data
for security and other reasons i will omit the url to create subjects Display all data
public function index()
	    {
            $subject = Subject::all();
            return view('/admin/subjects/index')->with('subject',$subject);
	    }
public function index ( ) { $ subject = Subject :: all ( ) ; return view ( '/admin/subjects/index' ) -> with ( 'subject' , $ subject ) ; }
for security and other reasons i will omit the url to create subjects
 Display all data
for security and other reasons i will omit the url to create subjects Display all data