Skip to content

Commit 0e0e098

Browse files
Merge pull request #2 from joynalam67598/development-2
design add form
2 parents 807fffd + da197f7 commit 0e0e098

File tree

14 files changed

+43381
-9899
lines changed

14 files changed

+43381
-9899
lines changed

.vscode/settings.json

Lines changed: 71 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,72 @@
11
{
2-
"editor.fontSize": 20,
3-
"editor.fontLigatures": true,
4-
"editor.wordWrap": "on",
5-
"editor.minimap.enabled": false,
6-
"editor.formatOnSave": true,
7-
"editor.codeActionsOnSave": {
8-
"source.fixAll.eslint": true,
9-
"source.fixAll.tslint": true,
10-
"source.organizeImports": true
11-
},
12-
"editor.tokenColorCustomizations": {
13-
"textMateRules": [
14-
{
15-
"scope": "comment",
16-
"settings": {
17-
"fontStyle": "italic"
18-
}
19-
}
20-
]
21-
},
22-
// cursor
23-
"editor.cursorSmoothCaretAnimation": true,
24-
"editor.cursorBlinking": "expand",
25-
// config related to code formatting
26-
"editor.defaultFormatter": "esbenp.prettier-vscode",
27-
// "[javascript]": {
28-
// "editor.formatOnSave": false,
29-
// "editor.defaultFormatter": null
30-
// },
31-
// "[javascriptreact]": {
32-
// "editor.formatOnSave": false,
33-
// "editor.defaultFormatter": null
34-
// },
35-
"eslint.alwaysShowStatus": true,
36-
//terminal
37-
"terminal.integrated.fontSize": 16,
38-
"terminal.integrated.fontWeight": "normal",
39-
"terminal.integrated.fontFamily": "monospace",
40-
"workbench.colorTheme": "Learn with Sumit Theme - Dracula version",
41-
"workbench.iconTheme": "material-icon-theme",
42-
// terminal customization
43-
"workbench.colorCustomizations": {
44-
"terminal.background": "#0a0b0c",
45-
"terminal.foreground": "#18ff03",
46-
"terminalCursor.background": "#fce51c",
47-
"terminalCursor.foreground": "#5fff82",
48-
"terminal.ansiBlack": "#1D2021",
49-
"terminal.ansiBlue": "#0D6678",
50-
"terminal.ansiBrightBlack": "#665C54",
51-
"terminal.ansiBrightBlue": "#0D6678",
52-
"terminal.ansiBrightCyan": "#8BA59B",
53-
"terminal.ansiBrightGreen": "#95C085",
54-
"terminal.ansiBrightMagenta": "#8F4673",
55-
"terminal.ansiBrightRed": "#FB543F",
56-
"terminal.ansiBrightWhite": "#FDF4C1",
57-
"terminal.ansiBrightYellow": "#FAC03B",
58-
"terminal.ansiCyan": "#8BA59B",
59-
"terminal.ansiGreen": "#95C085",
60-
"terminal.ansiMagenta": "#8F4673",
61-
"terminal.ansiRed": "#FB543F",
62-
"terminal.ansiWhite": "#A89984",
63-
"terminal.ansiYellow": "#c0942e"
64-
},
65-
"javascript.validate.enable": false,
66-
"typescript.validate.enable": false
67-
}
2+
"editor.fontSize": 20,
3+
"editor.fontLigatures": true,
4+
"editor.wordWrap": "on",
5+
"editor.minimap.enabled": false,
6+
"editor.formatOnSave": true,
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": true,
9+
"source.fixAll.tslint": true,
10+
"source.organizeImports": true
11+
},
12+
"editor.tokenColorCustomizations": {
13+
"textMateRules": [
14+
{
15+
"scope": "comment",
16+
"settings": {
17+
"fontStyle": "italic"
18+
}
19+
}
20+
]
21+
},
22+
"emmet.triggerExpansionOnTab": true,
23+
"blade.format.enable": true,
24+
"[blade]": {
25+
"editor.autoClosingBrackets": "always"
26+
},
27+
// cursor
28+
"editor.cursorSmoothCaretAnimation": true,
29+
"editor.cursorBlinking": "expand",
30+
// config related to code formatting
31+
"editor.defaultFormatter": "esbenp.prettier-vscode",
32+
// "[javascript]": {
33+
// "editor.formatOnSave": false,
34+
// "editor.defaultFormatter": null
35+
// },
36+
// "[javascriptreact]": {
37+
// "editor.formatOnSave": false,
38+
// "editor.defaultFormatter": null
39+
// },
40+
"eslint.alwaysShowStatus": true,
41+
//terminal
42+
"terminal.integrated.fontSize": 16,
43+
"terminal.integrated.fontWeight": "normal",
44+
"terminal.integrated.fontFamily": "monospace",
45+
"workbench.colorTheme": "Learn with Sumit Theme - Dracula version",
46+
"workbench.iconTheme": "material-icon-theme",
47+
// terminal customization
48+
"workbench.colorCustomizations": {
49+
"terminal.background": "#0a0b0c",
50+
"terminal.foreground": "#18ff03",
51+
"terminalCursor.background": "#fce51c",
52+
"terminalCursor.foreground": "#5fff82",
53+
"terminal.ansiBlack": "#1D2021",
54+
"terminal.ansiBlue": "#0D6678",
55+
"terminal.ansiBrightBlack": "#665C54",
56+
"terminal.ansiBrightBlue": "#0D6678",
57+
"terminal.ansiBrightCyan": "#8BA59B",
58+
"terminal.ansiBrightGreen": "#95C085",
59+
"terminal.ansiBrightMagenta": "#8F4673",
60+
"terminal.ansiBrightRed": "#FB543F",
61+
"terminal.ansiBrightWhite": "#FDF4C1",
62+
"terminal.ansiBrightYellow": "#FAC03B",
63+
"terminal.ansiCyan": "#8BA59B",
64+
"terminal.ansiGreen": "#95C085",
65+
"terminal.ansiMagenta": "#8F4673",
66+
"terminal.ansiRed": "#FB543F",
67+
"terminal.ansiWhite": "#A89984",
68+
"terminal.ansiYellow": "#c0942e"
69+
},
70+
"javascript.validate.enable": false,
71+
"typescript.validate.enable": false
72+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\API;
4+
5+
use App\Http\Controllers\Controller;
6+
use Illuminate\Http\Request;
7+
use App\Models\Student;
8+
9+
class StudentController extends Controller
10+
{
11+
public function store(){
12+
$student = new Student();
13+
}
14+
}

laravelapi/app/Models/Student.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace App\Models;
4+
5+
use Illuminate\Database\Eloquent\Factories\HasFactory;
6+
use Illuminate\Database\Eloquent\Model;
7+
8+
class Student extends Model
9+
{
10+
use HasFactory;
11+
protected $table="students";
12+
protected $fillable = [
13+
"name","email","course","phone"
14+
];
15+
}

laravelapi/app/Providers/AppServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Providers;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Illuminate\Support\Facades\Schema;
67

78
class AppServiceProvider extends ServiceProvider
89
{
@@ -23,6 +24,6 @@ public function register()
2324
*/
2425
public function boot()
2526
{
26-
//
27+
Schema::defaultStringLength(191);
2728
}
2829
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class CreateStudentsTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('students', function (Blueprint $table) {
17+
$table->id();
18+
$table->string("name");
19+
$table->string("course");
20+
$table->string("email");
21+
$table->string("phone");
22+
$table->timestamps();
23+
});
24+
}
25+
26+
/**
27+
* Reverse the migrations.
28+
*
29+
* @return void
30+
*/
31+
public function down()
32+
{
33+
Schema::dropIfExists('students');
34+
}
35+
}

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
22
"dependencies": {
33
"react-router-dom": "^5.3.0"
4-
},
5-
"scripts": {
6-
"start": "react-scripts start",
7-
"build": "react-scripts build",
8-
"test": "react-scripts test",
9-
"eject": "react-scripts eject"
104
}
115
}

0 commit comments

Comments
 (0)