256 Kilobytes

Web Development

Type All Category Web DevelopmentContent about developing websites, web applications, and other similar projects. Tag All

Profile Photo - Some Guy

[Laravel] Validate a user's input in the model constructor?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreCan you do this in a model's constructor? Or is it only possible to do this from the controller?[Laravel] Can you set a model's default valu...
🗨 0
🐏 0
👁 295
Profile Photo - Some Guy

How to use display:flex-row with <canvas> elements?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - Some Guy

MoreIs there a way to get the <canvas> elements in a flexbox to automatically scale in size?
🗨 0
🐏 0
👁 309
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHow do you do the thing in the title?
🗨 0
🐏 0
👁 302
Profile Photo - Some Guy

[Laravel] Specify foreign key name in model?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreI am using a foreign key name that is not the default. Can I specify this in the model file for my class?
🗨 0
🐏 0
👁 359
Profile Photo - Some Guy

[Laravel] How to extend a controller?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreFor a project that I set up previously, there are three controllers that all have similar functionality. I would like to make a parent controller that...
🗨 0
🐏 0
👁 295
Profile Photo - Some Guy

How does canvas.getContext() work?

Answers in Web Development | By Some Guy

Published

Profile Photo - Some Guy

MoreI know that it is required when working with <canvas> elements, but am not sure what it actually *does.*
🗨 0
🐏 0
👁 376
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreIf anyone can provide an example or point me toward the right documentation, I am willing to figure out the rest from there.
🗨 0
🐏 0
👁 288
Profile Photo - Some Guy

[Laravel] Yield with parameter?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreSee title.
🗨 0
🐏 0
👁 243
Profile Photo - Some Guy

Why are there multiple unicode HTML notations for each character?

Answers in Web Development | By Some Guy

Published | Last Update

Profile Photo - Some Guy

MoreWhy does unicode have multiple ways to encode for HTML? For example, check out this page (Right Angle Bracket): https://www.fileformat.info/inf...
🗨 0
🐏 0
👁 329
Profile Photo - Some Guy

[CSS] Set an element's height to be half of its width?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - Some Guy

MoreIs this style rule possible?
🗨 0
🐏 0
👁 261
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreFor example, if you want to run middleware only if the current post's ID is equal to []. Is this possible?
🗨 0
🐏 0
👁 296
Profile Photo - Some Guy

CSS - Space between without flexbox?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - Some Guy

MoreTo get this to work:justify-content:space-between;It seems like the display:flex property is also needed.Is there a different property to do this with...
🗨 0
🐏 0
👁 327
Profile Photo - Some Guy

What does the double colon do when working in the Linux terminal?

Answers in Server-Side | By Some Guy

Published

Profile Photo - Some Guy

MoreI found these threads on the Unix/Linux StackExchange, but not sure what they're saying?https://unix.stackexchange.com/questions/463560/bash-scri...
🗨 0
🐏 0
👁 328
Profile Photo - Some Guy
Profile Photo - Some Guy

In the controller for a Laravel resource...

MoreI set up the store function for a Laravel controller for a resource (posts). Posts must have a unique url/slug, which is set by the user.This works f...
🗨 0
🐏 0
👁 293
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreIs there a CSS selector that allows a parent element to be selected? I am attempting to write a custom radio button set where if the radio button is c...
🗨 0
🐏 0
👁 250
Profile Photo - Some Guy

Zend vs Laravel

Forum in Frameworks | By Some Guy

Published | Last Update

Profile Photo - Some Guy

Which do you prefer?

MoreWhich do you prefer?
🗨 0
🐏 0
👁 358
Profile Photo - Some Guy

Anyone on here self-host their websites?

Answers in Web Hosting | By Some Guy

Published

Profile Photo - Some Guy

MoreWhat kind of setups do you all use for hardware/OS? Am considering various options.Before anyone asks, yes, I am aware of the pros and cons of self-ho...
🗨 0
🐏 0
👁 358
Profile Photo - Some Guy

Is it possible to inject jQuery into a web page via the developer console (inspect element)?

Answers in Client-Side | By Some Guy

Published | Last Update

Profile Photo - Some Guy

Like, into the Google Chrome inspect ele...

MoreLike, into the Google Chrome inspect element console. If I want to run jQuery to scrape another website (and that website isn't already running jQ...
🗨 0
🐏 0
👁 429
Profile Photo - Some Guy

[Laravel] Validate array with Validator object in constructor?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreSee title's question.
🗨 0
🐏 0
👁 304
Profile Photo - Some Guy

[Laravel] How does the whereHas() method work with Eloquent?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MorePls help.
🗨 0
🐏 0
👁 372
Profile Photo - Some Guy

[Laravel Validation] Check if foreign key exists?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MorePls help.
🗨 0
🐏 0
👁 462
Profile Photo - Some Guy

"Thanks for Inventing JavaScript" meme - Are these bugs or features?

Forum in Client-Side | By Some Guy

Published | Last Update

Profile Photo - Some Guy

What's the deal with this meme? Why...

MoreWhat's the deal with this meme? Why exactly do these lines of JS code evaluate to what is shown here? https://i.imgur.com/7XR6sg1.png
🗨 0
🐏 0
👁 991
Profile Photo - Some Guy

TP-Link Port Forwarding -- Is it supported?

Answers in Web Hosting | By Some Guy

Published

Profile Photo - Some Guy

MoreI'd like to allow clients to connect to projects that are being worked on locally before domain names are registed, since clients at times take a...
🗨 0
🐏 0
👁 350
Profile Photo - Some Guy

[Laravel] Order by last comment?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreI'd like to have the posts on my website order by the most recent comment. Is this possible through Laravel?
🗨 0
🐏 0
👁 293
Profile Photo - Some Guy
Profile Photo - Some Guy

MorePLS HALP.
🗨 0
🐏 0
👁 348
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreAm getting an error while trying to throw an error.
🗨 0
🐏 0
👁 317
Profile Photo - Some Guy

[Laravel] How to pass a parameter to a factory?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreI have a factory that generates posts, which have category_id values. I would like to be able to either pass no value (and have a random one set - I&#...
🗨 0
🐏 0
👁 306
Profile Photo - Some Guy
Profile Photo - Some Guy

More[]https://www.w3schools.com/html/html5_new_elements.asphttps://www.w3schools.com/tags/tag_summary.asphttps://www.w3schools.com/tags/tag_details.asphtt...
🗨 0
🐏 0
👁 390
Profile Photo - Some Guy

[Laravel] What is a "before" route?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreTitle.
🗨 0
🐏 0
👁 255
Profile Photo - Some Guy

[Laravel] Convert collection to array without key?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreQuestion is in title. Not sure if possible?
🗨 0
🐏 0
👁 347