1

I am taking the inputs BlogTitle,BlogBody and sending $BlogData to validation,,,

But how can i insert a new value i.e., BlogUrl which is generated inside the controller so that $BlogData will have those 3 values

$BlogData = Input::only('BlogTitle', 'BlogBody');

How can i do this ?

1 Answer 1

1

Like this:

$BlogData = Input::only('BlogTitle', 'BlogBody');

$BlogData['BlogUrl'] = 'http://whatever.com';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.