Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Schema::create('projects', function (Blueprint $table) {
- $table->increments('id');
- $table->string('title');
- $table->string('url');
- $table->string('requirements');
- $table->string('coverImage');
- $table->string('domain');
- $table->text('feedbacks');
- $table->text('technologies_id');
- $table->timestamps();
- });
- $project = new Project;
- $project->title = $request->title;
- $project->url = $request->url;
- $project->requirements = $request->requirements;
- $project->coverImage = $request->coverImage;
- $project->customer_id = $request->customer_id;
- $project->domain = $request->domain;
- $project->feedbacks = $request->feedbacks;
- $project->technologies_id = json_encode($request->technologies_id);
- $project->services_id = $request->services_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement