Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Carbon\Carbon;
- class EventController extends \BaseController {
- public function index() {
- .........
- $dt = Carbon::now();
- $dateNow = $dt->toDateTimeString();
- View::share('dateNow', $dateNow);
- albo
- return View::make('jakis widok')->with(......., 'dateNow', $dateNow);
- }
- }
- w widoku example.blade.php
- @if($jakis_obiekt->updated_at >= $dateNow)
- jakis kod
- @endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement