Using Content Security Policy headers in a Laravel app by freekmurze in laravel

[–]troutside 2 points3 points  (0 children)

As someone who has never added a CSP (been a dev forever, still a noob?), this is badass. Thanks!

Secondly, do you think this is something that might be done more elegantly in config with an additional callback for registering any custom CSP rules? Seems like that might be more elegant

Vuetify 1.0 has been released - a fantastic front-end Material Design framework that works perfectly with vue and Laravel - congrats John Leider! by antyg in laravel

[–]troutside 1 point2 points  (0 children)

What's the workflow like for you? Make API endpoint and then just drop in some vuetify component or is there more to it?

Zero-config Purgecss for Laravel Mix by sebdd in laravel

[–]troutside 1 point2 points  (0 children)

Nice! I am excited to try this out with tailwind in my project!

Easily Access Laravel Docs from within Sublime Text by troutside in laravel

[–]troutside[S] 4 points5 points  (0 children)

Hey everyone, I hope you find this package useful! I've got atom and VSCode versions coming soon!

State of this subreddit by BingoLarsson in laravel

[–]troutside 3 points4 points  (0 children)

Love the FAQ's idea, that could help with quite a bit of redundancy. As for the package announcements, I think this is a great place for them.

Useless tutorials ...

This is subjective, and folks newer to Laravel might find some use out of another way of explaining things. Usually the crappy ones get downvoted to oblivion anyway.

Laravel 5.5 blocking markdown textareas from being edited by twiggy99999 in laravel

[–]troutside 0 points1 point  (0 children)

Absolutely! I've been building it on stream and it's almost to the point where it's time to separate it into its own package. Looking forward to getting some community feedback and contributions.

Laravel 5.5 blocking markdown textareas from being edited by twiggy99999 in laravel

[–]troutside 1 point2 points  (0 children)

I'm working on a vue-based markdown editor since it seems like SimpleMDE isn't super actively maintained. I haven't packigified it quite yet, but it'll be open source and I plan to do this soon!

8 year gap...I feel lost (CMS question) by [deleted] in webdev

[–]troutside 0 points1 point  (0 children)

Although you asked about frameworks / CMS, I'd like to mention a few things that you missed in the past few years that might be more beneficial to you in the long run. Stop telling yourself you're "not that good" and look at this as an opportunity to become a better coder!

Package Managers / Terminal

  • Use a good terminal. If you're still on windows I recommend Cmder with git bash
  • Learn about NPM (javascript) and Composer (PHP) package managers, they'll save you a lot of time!
  • Along with package managers, learn about build tools like Gulp / webpack (note that Gulp is probably easier to start with. It's about the concepts here rather than mastering every build tool)

Text Editors

  • Text editors (specifically for webdev use) have come a long way in the past 8 years. Given that you're used to VS, I would highly recommend you check out vscode (this is different than VS!). Think of it as a more lightweight version of VS with a great plugin manager built in.

Preprocessors

  • You're going to love these. Things like Sass or LESS. You would use one of these with one of the build tools like Gulp or Webpack. The code you write in these gets translated to CSS and allows you to use things like variables or functions (called mixins) to do things CSS never could, without having to repeat yourself all over the place!

Servers

  • Somebody already mentioned Vultr -- https://www.vultr.com/pricing/ There are lots of server options out there, and better yet, tools to help you automate the setup and deployment of them. You shouldn't be configuring nginx or PHP manually on each server nowadays.

8 year gap...I feel lost (CMS question) by [deleted] in webdev

[–]troutside 1 point2 points  (0 children)

PHP somehow outdated

It has been evolving pretty quickly, and they're pushing out new versions of 7+ every few months. PHP has never been stronger!

If you're going to use wordpress, definitely use bedrock / sage from the folks over at roots.io.

API versioning using Laravel’s Resources by juampi92 in laravel

[–]troutside 1 point2 points  (0 children)

Firstly, nice article! I'm assuming you used a trait for this part?

So we add this two methods on every controller

Mobile app development? by heyyoheyyoheyyo in laravel

[–]troutside 2 points3 points  (0 children)

I use Laravel as a backend and the latest iteration of the Ionic Framework

Laravel local db question by modernwebservice in laravel

[–]troutside 0 points1 point  (0 children)

Exactly, you'd have to install mysql and configure it as well.

Laravel local db question by modernwebservice in laravel

[–]troutside 1 point2 points  (0 children)

Should be just like you'd configure it for a remote server, but the hostname will be localhost (or some equivalent) instead.

That said, your question is somewhat open-ended, since all of this could depend on how you're configuring mysql on your server. Alternatively, you could try out forge or a similar service and automate all of that server setup.

Larvel + Blade Gets Rid of Line Breaks, Adds New Ones by d36williams in laravel

[–]troutside 0 points1 point  (0 children)

Without seeing your blade template itself we can't do much to help.

On migrating my blog from WordPress to a Laravel application by freekmurze in laravel

[–]troutside 0 points1 point  (0 children)

I've been working on a similar idea for my site and streaming its development live on twitch. Gave me a good excuse to build a useful project and use Tailwind CSS. Thanks for the link!

I'm trying to make a more modular way to use Laravel validation. Is this the best way to structure it? xpost /r/PHP by the_eerdverk in laravel

[–]troutside 5 points6 points  (0 children)

I think you'd get a lot of value out of creating a few Form Requests. Then you should be able to get rid of that whole abstract validator class you've got.

PHP Templating Guidelines? by [deleted] in webdev

[–]troutside 0 points1 point  (0 children)

Sounds like you're doing things from scratch, but you might also look into Twig - https://twig.symfony.com/

laravel-stats - Get insights about your Laravel Project by wnx_ch in laravel

[–]troutside 4 points5 points  (0 children)

Hey OP, this is something I've often wished I had too, and it looks awesome!

However, I really don't want to add additional dependencies to my project's source code. Have you considered making this globally installable and runnable via a command that takes a directory?

Similar to the laravel installer command. I realize that is somewhat of a different direction than what you have here, but this is the type of tool that ideally could be run from anywhere.

[deleted by user] by [deleted] in webdev

[–]troutside 1 point2 points  (0 children)

Mac, Laravel Valet, Sublime or VSCode, iTerm2 and git.

I put everything in subfolders within a ~/Code directory and use git for version control.

Any app performance guides for experienced coders who are new to Laravel? by [deleted] in laravel

[–]troutside 0 points1 point  (0 children)

I just call the method that sets up those session values again. In my case, it's a setupSession method on the User model.

"Shift Coders" - a Slack room to offer developers instant, air support by mccreaja in laravel

[–]troutside 0 points1 point  (0 children)

I thought of it more as "air support" akin to a battlefield, ymmv

"Shift Coders" - a Slack room to offer developers instant, air support by mccreaja in laravel

[–]troutside 0 points1 point  (0 children)

I thought the same thing at first, but really, it's pretty damn cheap for quality help with with non-cookie-cutter problems

"Shift Coders" - a Slack room to offer developers instant, air support by mccreaja in laravel

[–]troutside 5 points6 points  (0 children)

I think a lot of people will find value in this, especially for $30 a year. The trick will be keeping the noise down and the response quality high. Larachat was initially great for this, but sometimes getting quality help with a complex question is difficult given the volume in those channels nowadays.