Trev21

Trev21

Member Since 1 Year Ago

Experience Points 870
Experience
Level
Lessons Completed 4
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

11 Jan
11 months ago

Trev21 left a reply on PHP CODE IN LARAVEL

Thank you everybody.

Trev21 left a reply on PHP CODE IN LARAVEL

same thing would apply to adding right inside laravel view? sorry im not proficient in laravel

@php
    INSERT INTO table_name (column1, column2, column3,...) etc.... 
@endphp

Trev21 started a new conversation PHP CODE IN LARAVEL

Is it possible to use php code in laravel? I find laravel very secure than plain php itself but the ADD, DELETE, UPDATE using multiple tables in laravel is kinda complicated, using plain PHP inside the laravel view would be my idea, is it possible?

09 Jan
11 months ago

Trev21 started a new conversation Scheduling System In Laravel

Has anybody tried to code a scheduling system in Laravel? The process is similar on booking a plane ticket having a daily limit for say 5000 people per day. If so what did you use? Thanks a bunch.

08 Jan
11 months ago

Trev21 left a reply on Pair Programming In Laravel? Is It Possible?

by the way, how do you check the application to see the changes, is it also featured in git?

Trev21 left a reply on Pair Programming In Laravel? Is It Possible?

thanks @burlresearch does github work with internet? i haven't tried it yet. I'll look for this.

07 Jan
11 months ago

Trev21 started a new conversation Pair Programming In Laravel? Is It Possible?

Hello everyone, im working on a project in Laravel and only two of us in the project. How do you code laravel at the same time without having one to:

-Take places on a single PC (one has to rest and the other to code) -Server?? (Its not like wordpress that has login and work the site -github (we are coding it locally, the internet here is really bad)

Im looking for solutions that two of us can code at the same time. Thank you experts.

05 Jan
11 months ago

Trev21 left a reply on Wordpress As Homepage On A Laravel Application?

@dbapro sorry i'm not a programmer by profession. There's no need to be angry in most of your replies on this site.

04 Jan
11 months ago

Trev21 left a reply on Wordpress As Homepage On A Laravel Application?

Since I can access the wordpress directory (placed at the /public dir) from the URL using localhost:8000/wordpress, im looking for a way to redirect when users typed in localhost:8000 they are redirected to "localhost:8000/wordpress"

Trev21 left a reply on Wordpress As Homepage On A Laravel Application?

Thanks for the help everyone. Yes i'm not a programmer/IT im a financial analyst by profession... I want to create the scenario of the possibilities since it would be easier for the staff of the company to update the information through Wordpress CMS (4 paged information site) then there would be links/button (login/registration) for the Laravel portal app itself... Sorry about the dumb question, I started coding last november.

Trev21 started a new conversation Wordpress As Homepage On A Laravel Application?

Hi i was wonder if you can apply Wordpress on the homepage. I did put my wordpress folder in the /public directory in my laravel application.. And i was wondering if its possible to add pull the URL in the web.php route. Im using Laravel 5.3

I did try making a controller for wordpress and adding my wordpress folder in the Views and named it wordpress... still no luck.

Thanks!

Route::get('/', function () {
       return view ('/public/wordpress'); ??? not sure if this is right... or 
       return view ('/wordpress');
});
04 Jun
1 year ago

Trev21 started a new conversation AngularJS Not Working In Foreach Laravel Loop

this is my foreach loop

 @foreach($products as $product)  
      <tr class="products">     
             <td class="col-md-4"> {{ $product->product_description }} </td>        
             <td class="col-md-2"> 
                   <input class="sum" type="text" value="{{ $product->product_price }}" ng-model="price">
              </td>  
              <td class="col-md-3"> 
                    <input type="text" style="text-align:center; width:10%;" value="1" class="sum qty" ng-model="qty">
               </td>    
               <td class="col-md-4">
                      <span class="subtotal">@{{price*qty}}</span>
               </td>
               <td class="col-md-4">
                        <input type="checkbox" class="productCB" onclick="charmolen()">
                </td>    
       </tr>  
@endforeach

Problem:

-When I use "ng-model" the prices/quantity are not displayed, but when i use "ng-bind" the prices/quantity are displayed but the subtotal column displays NaN (i have no idea why).

Flow:

-Each row of that table displays a list of grocery items, when the checkbox is clicked, it means that the item is selected and transferred to another table for calculating the grandtotal.

Reference: https://ibb.co/hCddLv (snap from list of grocery items) https://ibb.co/e0jk0v (when that product is transferred, this happens) *im using "ng-bind" to display the price and quantity...

Thanks for the answer in advance guys...

02 Jun
1 year ago

Trev21 started a new conversation Dynamic Arithmetic, Is It Possible?

hi, is it possible to do these calculations dynamically? Thanks.

https://jsfiddle.net/69dty5a1/11/

Trev21 left a reply on Laravel Foreach

Thanks :)

01 Jun
1 year ago

Trev21 left a reply on Laravel Foreach

How to do it in Vue? this is actually my first time using JS Framworks, sorry for being such a noob :)

Trev21 left a reply on Laravel Foreach

https://jsfiddle.net/726o7wpd/531/

Assuming that the price is fixed and the quantities are dynamic :)

Trev21 left a reply on Laravel Foreach

Thanks for the recommendation @ouhare, i don't know its possible right?

Trev21 started a new conversation Laravel Foreach

This is my foreach in my table

@foreach($products as $product)  
                                                    <tr class="products">     
                                                      <td class="col-md-4"> {{ $product->product_description }} </td>        
                                                      <td class="col-md-2"> 
                                                          <input class="sum" value="{{ $product->product_price }}" >
                                                      </td>  
                                                      <td class="col-md-3"> 
                                                            <input type="text" style="text-align:center; width:10%;" value="1" >
                                                      </td>    
                                                      <td class="col-md-4">
                                                         <p> [Display subtotal price here] </p>
                                                      </td>
                                                      <td class="col-md-4">
                                                        <input type="checkbox" class="productCB">
                                                      </td>    
                                                    </tr>  
@endforeach 

How do you insert AngularJS here? I actually need to calculate the "price" and the "quantity" which has a default value of "1". Please help me out, im stuck with this for a month. Thanks :)