christogonus

Member Since 1 Year Ago

Experience Points
24,150
Total
Experience

850 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
228
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

  • Community Pillar

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

Level 5
24,150 XP
Jun
09
3 days ago
Activity icon

Replied to Site Also Accessible From /public

Here is how I do it:

Move the complete laravel project content to a directory over the root directory as below:

/home/{cpanel_username}/project-folder

Then I copy all the content of the "public" directory from the laravel directory to "public_html" as below

/home/{cpanel_username}/public_html

Then I update the index.php to reference the correct file parts.

NB: The example file parts here is as on Cpanel. But I trust you know how to translate it to your panel.

May
22
3 weeks ago
Activity icon

Awarded Best Reply on Working With Sub-domain Route

This issue is now resolved with the following steps:

  1. Edit and activate the Apache "vhost alias module" in file "xampp\apache\conf\httpd.conf"

from this

#LoadModule vhost_alias_module modules/mod_vhost_alias.so

to this

LoadModule vhost_alias_module modules/mod_vhost_alias.so
  1. Since these domains do not actually exist in reality, you also need to map them to the local IP address. Open the file C:\windows\system32\drivers\etc\hosts in a text editor and add the following line to it:
127.0.0.1           user1.bloxva.test   user2.bloxva.test
  1. Add the code below on the first line of the file at "xampp\apache\conf\extra\httpd-vhosts.conf"
UseCanonicalName Off
  1. Add the wild card alias to the httpd-vhosts.conf file now
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/bloxva/public"
    ServerName bloxva.test
	ServerAlias *.bloxva.test
	<Directory "C:/xampp/htdocs/bloxva/public">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
  1. Restart apache server.

Source: http://www.sintesisdigital.com.mx/dashboard/docs/configure-wildcard-subdomains.html

Activity icon

Replied to Working With Sub-domain Route

This issue is now resolved with the following steps:

  1. Edit and activate the Apache "vhost alias module" in file "xampp\apache\conf\httpd.conf"

from this

#LoadModule vhost_alias_module modules/mod_vhost_alias.so

to this

LoadModule vhost_alias_module modules/mod_vhost_alias.so
  1. Since these domains do not actually exist in reality, you also need to map them to the local IP address. Open the file C:\windows\system32\drivers\etc\hosts in a text editor and add the following line to it:
127.0.0.1           user1.bloxva.test   user2.bloxva.test
  1. Add the code below on the first line of the file at "xampp\apache\conf\extra\httpd-vhosts.conf"
UseCanonicalName Off
  1. Add the wild card alias to the httpd-vhosts.conf file now
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/bloxva/public"
    ServerName bloxva.test
	ServerAlias *.bloxva.test
	<Directory "C:/xampp/htdocs/bloxva/public">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
  1. Restart apache server.

Source: http://www.sintesisdigital.com.mx/dashboard/docs/configure-wildcard-subdomains.html

Activity icon

Replied to Working With Sub-domain Route

Development server is XAMPP.

Live server is Cpanel webhosting account

Activity icon

Started a new Conversation Working With Sub-domain Route

As on https://laravel.com/docs/8.x/routing#route-group-subdomain-routing

I am trying to make a subdomain like: {username}.bloxva.test

I have done this in my routing

Route::domain('{username}.bloxva.test')->group(function () {
    Route::get('/', function ($account) {
        return $account;
    });
});

But I get response "This site can’t be reached".

Is there a configuration required in the server to get this working or simply put, please guide me to get this working.

Thanks.

May
14
4 weeks ago
Activity icon

Replied to Iterating Over Eagerloaded Relationship

Thanks to you @jlrdw for your suggestion.

Calling the name as it is in the hasMany Relationship solved this for me.

So, instead of

$shipment->shipment_updates

I used

$shipment->shipmentUpdates

and it works

May
13
4 weeks ago
Activity icon

Started a new Conversation Iterating Over Eagerloaded Relationship

I have a loaded relationship data as seen below,

"id": 1,
"tracking_number": "11223344",
"status": "IN TRANSIT",
"created_at": "2021-05-13T11:46:14.000000Z",
"updated_at": "2021-05-14T01:31:53.000000Z",
"shipment_updates_count": 2,
"shipment_updates": [
  {
      "id": 1,
      "shipment_id": 1,
      "location": "Luxembourg",
      "status": "ullam",
      "created_at": "2021-05-13T11:46:14.000000Z",
      "updated_at": "2021-05-13T11:46:14.000000Z"
  },
  {
      "id": 2,
      "shipment_id": 1,
      "location": "Azerbaijan",
      "status": "dolorem",
      "created_at": "2021-05-13T11:46:14.000000Z",
      "updated_at": "2021-05-13T11:46:14.000000Z"
  }
  ]
}

I can access id as $shipment->id, but when I try $shipment->shipment_updates, it returns null.

I am looking to show the updates on the page.

I tried the code as below, but it fails too

@if($shipment->shipment_updates_count > 0)
    @foreach($shipment->shipment_updates as $shipmentupdate)
             <tr>
                     <td>{{ $shipmentupdate->location }}</td>
                     <td><span class="badge badge-success">{{ $shipmentupdate->status }}</span></td>
             </tr>
     @endforeach
@endif
Feb
09
4 months ago
Activity icon

Started a new Conversation Completely Remove Tailwind Css And Replace With Bootstrap4 Css

How can I completely remove tailwind css and replace with bootstrap4 css - after installing Jetstream?

I want to swap from tailwind to bootstrap cause I want to stick with it for now.

Even when I just go ahead to make custom layouts with Bootstrap4, PHP storm still gives me "code hint" for tailwind instead of bootstrap.

Feb
05
4 months ago
Activity icon

Commented on What Is Spark?

When will SPARK be available for purchase? I just see $199, but no order button.