Skip to content

Commit

Permalink
Fixed logical mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandrs Grigorjevs committed Oct 19, 2018
1 parent d9270a6 commit 0c6fcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion russian.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ $request->name;
`Session::put('cart', $data)` | `session(['cart' => $data])`
`$request->input('name'), Request::get('name')` | `$request->name, request('name')`
`return Redirect::back()` | `return back()`
`is_null($object->relation) ? $object->relation->id : null }` | `optional($object->relation)->id`
`is_null($object->relation) ? null : $object->relation->id` | `optional($object->relation)->id`
`return view('index')->with('title', $title)->with('client', $client)` | `return view('index', compact('title', 'client'))`
`$request->has('value') ? $request->value : 'default';` | `$request->get('value', 'default')`
`Carbon::now(), Carbon::today()` | `now(), today()`
Expand Down

0 comments on commit 0c6fcf9

Please sign in to comment.