For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
I need to say something so here is a paragraph.
// let's see how pre formatted code turns out
// react specific css modules | |
declare module '*.module.css' { | |
const content: Record<string, string>; | |
export default content; | |
} | |
// react specific for direct svg import | |
declare module '*.svg' { | |
import React = require('react'); | |
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>; |
Using Nuxt 3 RC 13 (latest as of Nov 9, 2022)
So far two major changes are the names of useBody changed to readBody and useCookies changed to parseCookies.
Still having issue with having to refresh page to get content to show or to get the correct tweetId from the url. Will update as soon as I figure it out.
I'll be documenting updated code changes here while going through the course. Once I finish the course I'll upload the complete project
``` | |
selector: | |
app: auth-mongo | |
type: ClusterIP | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
skaffold.dev/run-id: c6b4d167-f7f4-4be2-b880-d0dfe04b6a59 |
<?php | |
namespace App\Console\Commands; | |
use Closure; | |
use Exception; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Process\PhpExecutableFinder; | |
use Symfony\Component\Process\Process; |
@echo off | |
:: Path to Sublime Text installation dir. | |
SET stPath=%~dp0sublime_text.exe | |
SET stPathOnly=%~dp0 | |
:: Key name for the registry entries. | |
SET UserEntry=Sublime Text | |
SET AdminEntry=Sublime Text As Admin | |
:: Context menu texts. | |
SET "UserMenuText=Open with Sublime(&-)" | |
SET "AdminMenuText=Open with Sublime As Admin(&+)" |
-> Added new hasManyThrough relationship type. | |
-> Cloned Eloquent query builders now clone the underlying query builder. | |
-> Allow for passing of custom attributes into Validator::make as fourth parameter. | |
-> Allow comma delimited list of queues to be passed to queue:listen / queue:work to implement queue priority. | |
-> When new bindings are added to container, old aliases bound to that key will now be dropped. |
<?php | |
class DatabaseSeeder extends Seeder { | |
/** | |
* Tables to be truncated and seeded | |
* | |
* @var array $tables | |
*/ | |
private $tables = [ |
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; | |
color: #333; | |
} |