How could you post part of code on Laracast ??

Posted 1 year ago by Christianus

Simply fool question from me cause i'm newbie and searching for an answer How could you guys when you comment you share part of your code with GREY BACKGROUND and it so tidy, i couldnt do that... Ex

public function insertkeluhan(Request $request){ if($request->hasFile('ttdcus1')) { $imageTempName = $request->file('ttdcus1')->getPathname(); $imageName = $request->file('ttdcus1')->getClientOriginalName(); $path = base_path() . '/public/img/ttd'; $request->file('ttdcus1')->move($path , $imageName); } $keluhan = keluhan::create($request->all()); $keluhan->ttd_pemohon = $imageName;

output is so untidy when i post... please guide & sorry

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.