fetch data based on month and year in laravel
$post = Mjblog::whereYear('created_at', '=', $year)
->whereMonth('created_at', '=', $month)
->get();
$date = Carbon::createFromFormat('d/m/Y', $request->salary_date);
$empsalaries = EmpSalary:: whereMonth('salary_date', $date->month)
->whereYear('salary_date', $date->year)
->get()
Also in PHP:
- @lang laravel blade
- create laravel migration
- check a word in a string
- check if lenghth of string is 11 in php
- echo json_encode json_pretty
- exception is thrown php
- body field yml drupal config
- browser cache laravel
- check string for value php
- cmd clear cache laravel
- array find duplicates php
- datephp
- $val & 4 in php
- NAME OF YOUR FORM in contact form 7
- Best Image Manipulation and Graphs tools for php
- ->sale_price
- datetime php create from timestamp
- check if current page is home url wordpress
- echo err in php
- Tto upper php
- PHP DateTime ->format
- <?php if ( is_home()
- client_ip() function php
- all uppercase php