Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel belongsto many create

/**
 * Update the signature with the particular id
 *
 * @param $id
 * @param Request $request
 * @return ...
 */
 public function update( $id, Request $request ) {
    // your validation

    $signature->users()->sync( $request->input('user_id') );

    // return
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #belongsto #create
ADD COMMENT
Topic
Name
4+5 =