app/Repositories/Backend/Student/StudentRepository.php
/**
     * For Creating the respective model in storage
     *
     * @param array $input
     * @throws GeneralException
     * @return bool
     */
For Creating the respective model in storage
@param array $input
@throws GeneralException
@return bool
For Creating the respective model in storage @param array $input @throws GeneralException @return bool
public function create(array $input)
    {
        DB::transaction(function () use ($input) {
            $input               = $this->uploadImage($input);
            $input['created_by'] = access()->user()->id;
            if ($student = Student::create($input)) {
                return true;
            }
            throw new GeneralException(trans('exceptions.backend.students.create_error'));
        });
    }
public function create ( array $ input ) { DB :: transaction ( function ( ) use ( $ input ) { $ input = $ this -> uploadImage ( $ input ) ; $ input [ 'created_by' ] = access ( ) -> user ( ) -> id ; if ( $ student = Student :: create ( $ input ) ) { return true ; } throw new GeneralException ( trans ( 'exceptions.backend.students.create_error' ) ) ; } ) ; }
For Creating the respective model in storage
 @param array $input
 @throws GeneralException
 @return bool
For Creating the respective model in storage @param array $input @throws GeneralException @return bool