-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtodo
More file actions
25 lines (18 loc) · 759 Bytes
/
todo
File metadata and controls
25 lines (18 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Example writing some json data to a file.
// storage()->write('test.json', json_encode(['foo' => 'bar']));
// Dispatch example event to add "Welcome to" to the
// title in the view.
// dispatch(new \App\Events\MyEvent('Welcome to'));
// $message = new Message();
// $message->setFrom('John <john@example.com>')
// ->addTo('childscraig17@gmail.com')
// ->setSubject('Order Confirmation')
// ->setBody("Hello, Your order has been accepted.");
// mailer()->send($message);
// // Define a route with a parameter
// $router->route('GET', '/test/{slug}', [
// 'name' => 'test',
// 'controller' => '\App\Controllers\PagesController@test',
// ]);
// Define a resourceful read-only route.
// $router->resource('articles', ['read']);