protected function translateTimeslotId($oldTimeslotId)
    {
        $timeslot = ScoolTimeslot::where('order',Timeslot::findOrFail($oldTimeslotId)->order)->first();
        if ( $timeslot != null ) {
            return $timeslot->id;
        }
        throw new TimeslotNotFoundByNameException();
    }
protected function translateTimeslotId($oldTimeslotId)
    {
        $timeslot = ScoolTimeslot::where('order',Timeslot::findOrFail($oldTimeslotId)->order)->first();
        if ( $timeslot != null ) {
            return $timeslot->id;
        }
        throw new TimeslotNotFoundByNameException();
    }
protected function translateTimeslotId ( $ oldTimeslotId ) { $ timeslot = ScoolTimeslot :: where ( 'order' , Timeslot :: findOrFail ( $ oldTimeslotId ) -> order ) -> first ( ) ; if ( $ timeslot != null ) { return $ timeslot -> id ; } throw new TimeslotNotFoundByNameException ( ) ; }
Translate timeslot id.

@param $oldTimeslotId
@return mixed
@throws TimeslotNotFoundByNameException
Translate timeslot id .