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 Error] Non-static method should not be called statically

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyIIRC, this can occur if namespaces aren't handled correctly (?)Try:<?phpRequest::url() August R. Garcia,

IIRC, this can occur if n...

Sun, 02 Dec 2018 03:46:31 -08002 years ago1
🗨 1
🐏 0
👁 301
Profile Photo - Some Guy

Is "brochureware" still a thing?

Answers in Web Development | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySeems like a term that was likely used mainly around the dot com bubble/boom when companies pushed existing pamphlets onto the internet with no functi... August R. Garcia,

Seems like a term that wa...

Sun, 02 Dec 2018 03:46:29 -08002 years ago1
🗨 1
🐏 0
👁 286
Profile Photo - Some Guy

[CSS] Can the
tag have a class and/or ID attribute?

Answers in Style and Layout | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyYes, the <pre> tag can have class and ID attributes. One common use is to put large dumps of information into a limited-height scrollable area w... August R. Garcia,

Yes, the <pre> tag...

Sun, 02 Dec 2018 03:46:27 -08002 years ago1
🗨 1
🐏 0
👁 234
Profile Photo - Some Guy

[PHP Question] Unset an array by key?

Answers in Server-Side | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyYes. Ex: <?php   unset( $data['some_key'] ); August R. Garcia,

Yes. Ex:

Sun, 02 Dec 2018 03:46:26 -08002 years ago1
🗨 1
🐏 0
👁 254
Profile Photo - Some Guy

What even are service providers in Laravel?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyLaracasts has videos that discuss service providers. You might start here: https://laracasts.com/series/Laravel-from-scratch-2017/episodes/24... August R. Garcia,

Laracasts has videos that...

Sun, 02 Dec 2018 03:46:25 -08002 years ago1
🗨 1
🐏 0
👁 257
Profile Photo - Some Guy

Tic Tac Toe using HTML, CSS, and JavaScript.

Answers in Web Development | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyPartial solution. IIRC, I didn't finish writing this before posting (?)  <!DOCTYPE HTML> <html> <head><title>P... August R. Garcia,

Partial solution. IIRC, I...

Sun, 02 Dec 2018 03:46:16 -08002 years ago1
🗨 1
🐏 0
👁 256
Profile Photo - Some Guy

How do you add a CSS hover to pseudo-elements?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThis post covers the reason why the :hover selector isn't working in your code:"You can not do ::after:hover because you can't detect t... August R. Garcia,

This post covers the reas...

Sun, 02 Dec 2018 03:46:15 -08002 years ago1
🗨 1
🐏 0
👁 249
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyThere is an attribute called $fillable that can be set for Laravel models. See this section of the Laravel documentation: https://laravel.com/d... August R. Garcia,

There is an attribute cal...

Sun, 02 Dec 2018 03:46:14 -08002 years ago1
🗨 1
🐏 0
👁 301
Profile Photo - Some Guy

Can you use CSS to add commas to numbers? Or is PHP/JS needed?

Answers in Web Development | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThere is no way to format numbers through CSS, but it can be done through PHP or JS relatively easily. PHP's number_format() function does this... August R. Garcia,

There is no way to format...

Sun, 02 Dec 2018 03:46:04 -08002 years ago1
🗨 1
🐏 0
👁 327
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplySomething like this should work: <script> function create_thing(element) { // do something with an element passed to the function... August R. Garcia,

Something like this shoul...

Sun, 02 Dec 2018 03:46:03 -08002 years ago1
🗨 1
🐏 0
👁 440
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplySix hexadecimal digits: 000000 to FFFFFF Hexadecimal is base 16: 0 = 0 1 = 1 [...] 9 = 9 A = 10 B = 11 C = 12 D = 13 E = 14... August R. Garcia,

Six hexadecimal digits: 0...

Sun, 02 Dec 2018 03:46:02 -08002 years ago1
🗨 1
🐏 0
👁 257
Profile Photo - Some Guy

Any way to "put" all files and folders recursively via FTP/SFTP?

Answers in Web Hosting | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyTry: scp -r your_project your_username@yourdomain.com:/home/your_project/yourdomain.com As far as I know, there is no way to force the &#39... August R. Garcia,

Try:

Sun, 02 Dec 2018 03:46:01 -08002 years ago1
🗨 1
🐏 0
👁 373
Profile Photo - Some Guy

How to check the current page in Laravel?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyTo get the current path, you can use: <?php Request::path() August R. Garcia,

To get the current path,...

Sun, 02 Dec 2018 03:45:58 -08002 years ago1
🗨 1
🐏 0
👁 346
Profile Photo - Some Guy

[Laravel] Collection to array? What is the difference?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

What is actually the difference bewteen...

MoreI am still getting the hang of how collections work in Laravel. After reading the documentation (link below), I am still unsure when and how to get th...
🗨 0
🐏 0
👁 291
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreJust a basic wave pattern. Nothing too fancy.
🗨 0
🐏 0
👁 310
Profile Photo - Some Guy

How to override the default resource routes for a Laravel project?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreWhen you set a route as a resource through the /routes/web.php file, it seems that what is happening behind the scenes is that a number of specific su...
🗨 0
🐏 0
👁 221
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreRequires a good understanding of HTML, CSS, and JavaScript. If you can make a functional SVG clock with HTMl, CSS, and JS, you are probably reasonably...
🗨 0
🐏 0
👁 319
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI have seen some tutorials use both and they seem to do the same thing. Which one is better to use? Or does it matter?
🗨 0
🐏 0
👁 226
Profile Photo - Some Guy
Profile Photo - Some Guy

Issue with Laravel's 'PHP arti...

MoreDoes anyone know how to solve this error message:> [Fri Nov 2 01:00:44 2018] Failed to listen on 104.153.200.240:80 (reason: Cannot assign request...
🗨 0
🐏 0
👁 438
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreBasic pagination is straightforward, but not sure how to do this.
🗨 0
🐏 0
👁 240
Profile Photo - Some Guy

[Laravel] Check if user is logged in?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreHow can I make sure a user is logged in before doing something?
🗨 0
🐏 0
👁 237
Profile Photo - Some Guy
Profile Photo - Some Guy

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

Ruby: Pros and Cons?

Forum in Web Development | By Some Guy

Published | Last Update

Profile Photo - Some Guy

PHP is the essentially the only programm...

MorePHP is the essentially the only programming language that I use for server-side programming. Have been thinking about testing out Ruby, since there se...
🗨 0
🐏 0
👁 296
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI'd like to avoid using jQuery for this project and am considering using summary/details tags to handle toggling element visibility, since this i...
🗨 0
🐏 0
👁 294
Profile Photo - Some Guy

[Laravel] Can you make a factory without a model?

Answers in Frameworks | By Some Guy

Published | Last Update

Profile Photo - Some Guy

MoreI am working on setting up seeders for my site to test everything with lorum ipsum text. I have a model/table for users, but want to write two separat...
🗨 0
🐏 0
👁 286
Profile Photo - Some Guy

[Laravel] How to query a many-to-many relationship?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreHalp.
🗨 0
🐏 0
👁 285
Profile Photo - Some Guy

How to scale <canvas> elements without making them blurry?

Answers in Style and Layout | By Some Guy

Published | Last Update

Profile Photo - Some Guy

MoreThe charts that I've generated with JS and <canvas> elements look fine at the default size, but are unusably blurry at larger sizes. I...
🗨 0
🐏 0
👁 283
Profile Photo - Some Guy

[Laravel] Check if any elements in a collection have a certain id?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

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

[Laravel] Can you run a query from a layout/template?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreI hope this question makes sense.
🗨 0
🐏 0
👁 216
Profile Photo - Some Guy

Does JavaScript have foreach loops?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreMozilla's documentation indicates that there is a foreach in JS:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/...
🗨 0
🐏 0
👁 310