• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

laravel liver server error Class 'App\models\Unioun' not found

I am using laravel latest version, i have build a relation with User and Division models

    public function user()
    {
        return $this->hasMany('AppmodelsUser', 'id');
    }
        public function division()
    {
        return $this->belongsTo('AppmodelsDivision', 'division_id');
    }

And in blade view


  class="">Division</td>
  <td class="">:</td>
  <td class="">{{Auth::user()->division == null ? 'Not define' : Auth::user()->division->name}}

Local server working good, but live server showing error

Class 'AppmodelsUnioun' not found