Skip to content

Commit 2fdd62c

Browse files
committed
After part 6
1 parent 9a6bcb9 commit 2fdd62c

22 files changed

+43221
-34167
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use App\Phonebook;
6+
use Illuminate\Http\Request;
7+
8+
class PhonebookController extends Controller
9+
{
10+
/**
11+
* Display a listing of the resource.
12+
*
13+
* @return \Illuminate\Http\Response
14+
*/
15+
public function index()
16+
{
17+
//
18+
}
19+
20+
/**
21+
* Show the form for creating a new resource.
22+
*
23+
* @return \Illuminate\Http\Response
24+
*/
25+
public function create()
26+
{
27+
//
28+
}
29+
30+
/**
31+
* Store a newly created resource in storage.
32+
*
33+
* @param \Illuminate\Http\Request $request
34+
* @return \Illuminate\Http\Response
35+
*/
36+
public function store(Request $request)
37+
{
38+
//
39+
}
40+
41+
/**
42+
* Display the specified resource.
43+
*
44+
* @param \App\Phonebook $phonebook
45+
* @return \Illuminate\Http\Response
46+
*/
47+
public function show(Phonebook $phonebook)
48+
{
49+
//
50+
}
51+
52+
/**
53+
* Show the form for editing the specified resource.
54+
*
55+
* @param \App\Phonebook $phonebook
56+
* @return \Illuminate\Http\Response
57+
*/
58+
public function edit(Phonebook $phonebook)
59+
{
60+
//
61+
}
62+
63+
/**
64+
* Update the specified resource in storage.
65+
*
66+
* @param \Illuminate\Http\Request $request
67+
* @param \App\Phonebook $phonebook
68+
* @return \Illuminate\Http\Response
69+
*/
70+
public function update(Request $request, Phonebook $phonebook)
71+
{
72+
//
73+
}
74+
75+
/**
76+
* Remove the specified resource from storage.
77+
*
78+
* @param \App\Phonebook $phonebook
79+
* @return \Illuminate\Http\Response
80+
*/
81+
public function destroy(Phonebook $phonebook)
82+
{
83+
//
84+
}
85+
}

app/Phonebook.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace App;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class Phonebook extends Model
8+
{
9+
//
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class CreatePhonebooksTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('phonebooks', function (Blueprint $table) {
17+
$table->increments('id');
18+
$table->timestamps();
19+
});
20+
}
21+
22+
/**
23+
* Reverse the migrations.
24+
*
25+
* @return void
26+
*/
27+
public function down()
28+
{
29+
Schema::dropIfExists('phonebooks');
30+
}
31+
}

0 commit comments

Comments
 (0)