Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tags = Category::whereIn('name', $tag_names)->pluck('id')->toArray();
- CREATE TABLE categories (
- id SERIAL PRIMARY KEY,
- name TEXT NOT NULL UNIQUE,
- description TEXT,
- num_posts INTEGER DEFAULT 0 NOT NULL
- );
Add Comment
Please, Sign In to add comment