timyboy12345

timyboy12345

Member Since 7 Months Ago

Experience Points
480
Total
Experience

4,520 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
2
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
480 XP
Dec
03
1 month ago
Activity icon

Started a new Conversation The Scout Namespace Is Not Found Using SSH

I have Laravel running on a Synology server, using php73 artisan scout:import I can import all my models to Algolia/Scout using Laravel, this works great on one of my other projects, running on the same server with the same packages. I've now created a new Laravel project and uploaded it to my server. I'm now getting the error There are no commands defined in the "scout" namespace. when I try to use scout:import. I've already removed and re-installed the algolia/scout-extended package, but this didn't to anything.

Can anyone think of a reason why scout can't be found?

PS: To install composer packages, I have to use --ignore-platform-reqs so composer doesn't check packages against my default PHP version, which for Synology is 5.x I believe. Could this be a reason, and if so, does anyone know if it's possible to change your Synology's PHP version to 7.3. It's already installed, but I can only use it with php73 [command] instead of php [command]

Nov
08
2 months ago
Activity icon

Replied to What Is The Best Way To Develop Subdomains In Laravel?

Creating a /school is a possibility, but I prefer to create a separate subdomain. That way, Authentication is easier and I can do things like better SEO that I can't do when it's all on one domain.

My current solution is two projects, but these have separate models. I was wondering if someone has a good solution for "sharing" models between two Laravel projects. This way, I wouldn't have to copy/paste files every time I change a model or notification.

A custom authentication system isn't too big of a problem, so this could be a possibility. Then I would still have the problem of the subdomain route mapping in local and production environments. I don't want to change a file before I merge/commit. The best solution I could think of is checking if env("APP_TYPE") is dev or prod, and change the domain based on that. But if anyone has a better solution, please feel free to share it with me!

Nov
03
2 months ago
Activity icon

Started a new Conversation What Is The Best Way To Develop Subdomains In Laravel?

I'm creating a website in which I want an admin panel and a panel for schools. This second panel should be available trough "school.{DOMAIN}". Currently, these are two separate projects that both have the same models and migrations, but I have to add/change the files in both projects when I change a model, notification or something else.

This means that development can be very annoying because I have to copy/paste files between projects. This is why I'm interested in Laravel subdomain routing. However, the more I read into this method, the more I am starting to think Laravel subdomain routing isn't quite a finished project yet. I've got a few questions:

1: How should I add the subdomain to my Routes, I currently have

    protected function mapSchoolRoutes()
    {
        Route::domain('school.lvh.me')
            ->namespace($this->namespace)
            ->group(base_path('routes/school.php'));
    }

in my RouteServiceProvider.php file, but this way when I deploy to production, it is still only responding to requests to .lvh.me (which doesn't work, because this isn't the domain).

2: Can I use separate login/register pages for my subdomain? Currently, when I add Auth::routes() to my routes/school.php file, it goes to the default views (views/auth/login.php) instead of the right files (views/school/auth/login.php).

3: Is Laravel subdomain development "mature" enough? Or is there a better way for me to develop the main domain and a subdomain?

Sep
12
4 months ago
Activity icon

Replied to Visiting My Laravel Website Hosted On Synology Downloads A File

I did it: I gave permission to Web Station (it probably didn't have it, because I dragged it from another location and it didn't give itself permission). I went into settings > shared folders > [ Folder Name ] > Edit > Permissions > Local Groups (Select from dropdown at the top) and gave read/write permissions to the HTTP group.

I also downloaded a missing PHP extension through web station > PHP settings > Default Profile > Edit and selected all necessary extensions.

Activity icon

Replied to Visiting My Laravel Website Hosted On Synology Downloads A File

I've created a PHP info page, and it showed all PHP settings, so PHP works.

There is an interesting development though: Yesterday I changed and tweaked some things in the settings. I also moved the folder out of the default web folder and into a new directory. I changed the folder in the virtual host and enabled error showing in index.php, and instead of downloading a file it now shows me this error:

Warning: require(/volume1/laravel_sites/web-project/public/../bootstrap/autoload.php): failed to open stream: Permission denied in /volume1/laravel_sites/web-project/public/index.php on line 27 Fatal error: require(): Failed opening required '/volume1/laravel_sites/web-project/public/../bootstrap/autoload.php' (include_path='.') in /volume1/laravel_sites/web-project/public/index.php on line 27

I have some experience working with my NAS, but I don't know how to fix this (I think it's a permission thing). If anyone could help me out here, I would greatly appreciate it!

I've also tried serving the website with Apache 2.4 now, but it gives the same error.

Sep
11
4 months ago
Activity icon

Replied to Visiting My Laravel Website Hosted On Synology Downloads A File

I am currently using a virtual host in Synology Web Station as I said before, I have this configured with Nginx (it came with Web Station). I've made a screenshot of the settings of the virtual host: https://imgur.com/a/hpDNgOF

Activity icon

Replied to Visiting My Laravel Website Hosted On Synology Downloads A File

laravel/framework v5.2.45 The Laravel Framework.

Activity icon

Replied to Visiting My Laravel Website Hosted On Synology Downloads A File

Yes, PHP is installed (PHP -v returns version 5.6.11)

Activity icon

Started a new Conversation Visiting My Laravel Website Hosted On Synology Downloads A File

Hi there,

I want to host a Laravel website on my Synology NAS. I have everything set up, and working. I've downloaded composer, created a project, forwarded all ports and it all works. But when I visit my website (laravel.something.nl) instead of seeing the correct page, my computer downloads the public/index.php file.

I did create a virtual host and point it to the /public directory, but this is correct (right?)

It seems to me it isn't executing the php script, but just printing the code. Windows downloads a file to my PC, with the PHP code, while my iPhone shows my the raw PHP code in the browser.

If anyone could help me, I would appreciate it!