File tree Expand file tree Collapse file tree 4 files changed +58
-1
lines changed Expand file tree Collapse file tree 4 files changed +58
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ public function projectCreateProject(request $request)
1212		$ projectnew  Project ();
1313		$ projecttitle  = $ request'title ' ];
1414		$ projectdescription  = $ request'description ' ];
15+ 		$ projectgithub_link  = $ request'github_link ' ];
16+ 		$ projectslack_link  = $ request'slack_link ' ];
17+ 		$ projectwebsite_link  = $ request'website_link ' ];
18+ 		$ projectget_involved_pitch  = $ request'get_involved_pitch ' ];
19+ 		$ projectproject_admin_user_id  = $ requestuser ()->id ;
1520		$ requestuser ()->projects ()->save ($ project
1621		return  view ('home ' );
1722	}
Original file line number Diff line number Diff line change 1+ <?php 
2+ 
3+ use  Illuminate \Support \Facades \Schema ;
4+ use  Illuminate \Database \Schema \Blueprint ;
5+ use  Illuminate \Database \Migrations \Migration ;
6+ 
7+ class  AddToProjects extends  Migration
8+ {
9+     /** 
10+      * Run the migrations. 
11+      * 
12+      * @return void 
13+      */ 
14+     public  function  up ()
15+     {
16+         Schema::table ('projects ' , function  (Blueprint $ table
17+             // 
18+             $ tableinteger ('project_admin_user_id ' )->nullable ();
19+             $ tablestring ('github_link ' , 100 )->nullable ();
20+             $ tablestring ('slack_link ' , 100 )->nullable ();
21+             $ tablestring ('website_link ' , 100 )->nullable ();
22+             $ tablelongText ('get_involved_pitch ' )->nullable ();
23+         });
24+     }
25+ 
26+     /** 
27+      * Reverse the migrations. 
28+      * 
29+      * @return void 
30+      */ 
31+     public  function  down ()
32+     {
33+         Schema::table ('projects ' , function  (Blueprint $ table
34+             // 
35+             $ tabledropColumn ('project_admin_user_id ' );
36+             $ tabledropColumn ('github_link ' );
37+             $ tabledropColumn ('slack_link ' );
38+             $ tabledropColumn ('website_link ' );
39+             $ tabledropColumn ('get_involved_pitch ' );
40+         });
41+     }
42+ }
Original file line number Diff line number Diff line change 1414             <div  class =" form-group" 
1515                <textarea  class =" form-control" name =" title" id =" new-project" rows =" 5" placeholder =" Your Project Title" textarea >
1616                <textarea  class =" form-control" name =" description" id =" new-project" rows =" 5" placeholder =" Your Project Description" textarea >
17-             </div >
17+                 <textarea  class =" form-control" name =" github_link" id =" new-project" rows =" 2" placeholder =" GitHub Link Here" textarea >
18+                 <textarea  class =" form-control" name =" slack_link" id =" new-project" rows =" 2" placeholder =" Slack Link Here" textarea >
19+                 <textarea  class =" form-control" name =" website_link" id =" new-project" rows =" 2" placeholder =" Website Link Here" textarea >
20+                 <textarea  class =" form-control" name =" get_involved_pitch" id =" new-project" rows =" 5" placeholder =" Explain how to get involved" textarea >
21+                             </div >
1822             <button  type =" submit" class =" btn btn-primary" button >
1923             <input  type =" hidden" value =" {{  Session:: token ()  } }" name =" _token" 
2024              {{  csrf_field ()  } }
Original file line number Diff line number Diff line change 44<h1 >{{  $project -> title   } }h1 >
55<h3 >{{  $project -> description   } }h3 >
66<a  href =" /members/{{  $project -> id   } }" a >
7+ 
8+ <div >
9+ </div >
10+ 
11+ 
12+ 
713@endsection 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments