src/Http/Controllers/FrontendListSubscribeController.php
public function subscribeform($listID) {

        if (!$this->subscribeToList->getListByID($listID)) {
            return view('lasallecrmlistmanagement::subscribe-unsubscribe-list.list_invalid', [
                'title'        => 'Invalid List',
            ]);
        }

        return view('lasallecrmlistmanagement::subscribe-unsubscribe-list.subscribe_form', [
            'title'            => 'List Sign-up',
            'email_field_only' => Config::get('lasallecrmlistmanagement.listmgmt_subscribe_form_email_field_only'),
            'list'             => $this->subscribeToList->getListnameByListId($listID),
            'listID'           => $listID,
        ]);
    }
public function subscribeform($listID) {

        if (!$this->subscribeToList->getListByID($listID)) {
            return view('lasallecrmlistmanagement::subscribe-unsubscribe-list.list_invalid', [
                'title'        => 'Invalid List',
            ]);
        }

        return view('lasallecrmlistmanagement::subscribe-unsubscribe-list.subscribe_form', [
            'title'            => 'List Sign-up',
            'email_field_only' => Config::get('lasallecrmlistmanagement.listmgmt_subscribe_form_email_field_only'),
            'list'             => $this->subscribeToList->getListnameByListId($listID),
            'listID'           => $listID,
        ]);
    }
public function subscribeform ( $ listID ) { if ( ! $ this -> subscribeToList -> getListByID ( $ listID ) ) { return view ( 'lasallecrmlistmanagement::subscribe-unsubscribe-list.list_invalid' , [ 'title' => 'Invalid List' , ] ) ; } return view ( 'lasallecrmlistmanagement::subscribe-unsubscribe-list.subscribe_form' , [ 'title' => 'List Sign-up' , 'email_field_only' => Config :: get ( 'lasallecrmlistmanagement.listmgmt_subscribe_form_email_field_only' ) , 'list' => $ this -> subscribeToList -> getListnameByListId ( $ listID ) , 'listID' => $ listID , ] ) ; }
Display the subscribe form for a given list ID

@param   int       $listID    The "id" field of the "email_list" db table
@return  \Illuminate\Http\Response
Display the subscribe form for a given list ID