| xqd
@@ -15,13 +15,7 @@ class TestController extends Controller
|
|
|
{
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
- $today = Carbon::today();
|
|
|
- $this_week_begin = null;
|
|
|
- while($today->dayOfWeekIso != 1) {
|
|
|
- $today = $today->subDay();
|
|
|
- }
|
|
|
- $this_week_begin = $today->toDateTimeString();
|
|
|
- $this_week_end = $today->addDays(7)->toDateTimeString();
|
|
|
- dd($this_week_begin, $this_week_end);
|
|
|
+ $text = 'aa:';
|
|
|
+ dd(explode(':', $text));
|
|
|
}
|
|
|
}
|