Trev21

Experience

870

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 4 Lessons Completed
  • 0 Favorites

11th January, 2018

Trev21 left a reply on PHP CODE IN LARAVEL • 5 months ago

Thank you everybody.

Trev21 left a reply on PHP CODE IN LARAVEL • 5 months ago

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 • 5 months ago

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?

9th January, 2018

Trev21 started a new conversation Scheduling System In Laravel • 5 months ago

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.

8th January, 2018

Trev21 left a reply on Pair Programming In Laravel? Is It Possible? • 5 months ago

Thanks

Trev21 left a reply on Pair Programming In Laravel? Is It Possible? • 5 months ago

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? • 5 months ago

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

7th January, 2018

Trev21 started a new conversation Pair Programming In Laravel? Is It Possible? • 5 months ago

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.

5th January, 2018

Trev21 left a reply on Wordpress As Homepage On A Laravel Application? • 5 months ago

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

4th January, 2018

Trev21 left a reply on Wordpress As Homepage On A Laravel Application? • 5 months ago

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? • 5 months ago

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? • 5 months ago

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');
});

4th June, 2017

Trev21 left a reply on AngularJS Not Working In Foreach Laravel Loop • 1 year ago

this is the main div

Trev21 started a new conversation AngularJS Not Working In Foreach Laravel Loop • 1 year ago

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

2nd June, 2017

Trev21 started a new conversation Dynamic Arithmetic, Is It Possible? • 1 year ago

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

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

Trev21 left a reply on Laravel Foreach • 1 year ago

Thanks :)

1st June, 2017

Trev21 left a reply on Laravel Foreach • 1 year ago

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 • 1 year ago

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

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

Trev21 left a reply on Laravel Foreach • 1 year ago

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

Trev21 started a new conversation Laravel Foreach • 1 year ago

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 :)

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.