Rangana

Rangana

Member Since 6 Months Ago

Experience Points
620
Total
Experience

4,380 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
0
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
620 XP
Jul
11
3 months ago
Activity icon

Started a new conversation How To Create Null Values Columns In Laravel Database File?

I have following database file in Laravel database file,

<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCommentsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('comments', function (Blueprint $table) {
            $table->increments('id');
            $table->string('comment');
            $table->string('extra');
            $table->integer('user_id');
            $table->integer('vehicle_id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('comments');
    }
}


I need to make null on both comment and extra columns how can I configure this on database file?

Jul
06
3 months ago
Activity icon

Replied to What Is Data Type To Store Date In Laravel?

@snapey I have date like '02 jul 2019' in My data input. then may I use date type to store like above date value?

Activity icon

Started a new conversation What Is Data Type To Store Date In Laravel?

simply I need store date like 02 Jul 2019 in my laravel app. how can I give data type in my migration file to store like above date?

Jun
14
3 months ago
Activity icon

Replied to PHP Interview Online Paper?

No, any solutions here?

Activity icon

Started a new conversation PHP Interview Online Paper?

I have an Interview (paper) for the post of php full stack developer. Please send me if you know some online resources for getting sample php, javascript and css testing papers? Thanks.

Jun
10
4 months ago
Activity icon

Replied to PHP Design Patterns

@bobbybouwmann I have followed your youtube tutorials on design patterns at Laracon. I think those are very good. but in my level, those are a bit advanced. actually, I need simple to advanced php design pattern tutorials using plain php or Laravel. Thanks.

Jun
09
4 months ago
Activity icon

Started a new conversation PHP Design Patterns

I am new to php design patterns. I have searched so many resources on the internet. there are a lot of but some of them are not clear or someones are big advanced. so, if anybody knows that send me any good resources link simple but complete in PHP Design patterns.

Thanks.

May
23
4 months ago
Activity icon

Replied to Not Display Properly Bootstrap Div With Laravel App

got solution should use @include('sidebar.sidebar') expect to @extends('sidebar.sidebar')

Activity icon

Replied to Not Display Properly Bootstrap Div With Laravel App

@ottaviane No, any error in inspect element

Activity icon

Started a new conversation Not Display Properly Bootstrap Div With Laravel App

I am using Laravel 5.7 and bootstrap for my app. and I have following side bar menu in sidebar blade file like this,

    <div class="col-sm-4 col-md-3 sidebar">
    <div class="mini-submenu">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </div>
    <div class="list-group">
        <span href="#" class="list-group-item active">
            Submenu
            <span class="pull-right" id="slide-submenu">

            </span>
        </span>
        <a href="#" class="list-group-item">
            <i class="fa fa-comment-o"></i> Lorem ipsum
        </a>
        <a href="#" class="list-group-item">
            <i class="fa fa-search"></i> Lorem ipsum
        </a>
        <a href="#" class="list-group-item">
            <i class="fa fa-user"></i> Lorem ipsum
        </a>
        <a href="#" class="list-group-item">
            <i class="fa fa-folder-open-o"></i> Lorem ipsum 
        </a>
        <a href="#" class="list-group-item">
            <i class="fa fa-bar-chart-o"></i> Lorem ipsumr 
        </a>
        <a href="#" class="list-group-item">
            <i class="fa fa-envelope"></i> Lorem ipsum
        </a>
    </div>        


and extends in welcome page like this,

<div class="container">
<div class="row">

<div class="col-md-12" style="background-color:red;">
<div class="col-md-4">

@extends('sidebar.sidebar')
</div>


 

<div class="col-md-4">
<form>
  <div class="form-group">
    <label for="exampleInputEmail1">Email address</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">Password</label>
    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
  </div>
  <div class="form-check">
    <input type="checkbox" class="form-check-input" id="exampleCheck1">
    <label class="form-check-label" for="exampleCheck1">Check me out</label>
  </div>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>


</div>
</div>
</div>

</body>
</html>

but in this div box,

<div class="col-md-4 ">

@extends('sidebar.sidebar')
</div>

side bar is not properly display in col-md-4 box. it is displaing out of the box. how can fix this?

May
04
5 months ago
Activity icon

Started a new conversation Undefined Variable: Students (View: D:\exam\curd\resources\views\home.blade.php)

working with laravel 5.7 and need display student table data in the home page, home.blade.php

<table class="table">
                    <thered>
                     <tr>
                         <td>Id</td>
                         <td>Name</td>
                         <td>Address</td>
                         <td>Telephone</td>
                         <td>Actions</td>
                     </tr>
                    </thead>

                    <tbody>
                      @foreach ($students as $student)
                      <tr>
                        <td>{{$student->id}}</td>
                        <td>{{$student->name}}</td>
                        <td>{{$student->address}}</td>
                        <td>{{$student->telephone}}</td>
                        <td><a class="button is-outlined" href="">Edit</a></td>
                        <td><a class="button is-outlined" href="">Delete</a></td>

                      </tr>

                      @endforeach
                    </tbody>
                    </table>

StudentController.php

  public function index()
    {
        $students = Student::all();
        return view('home');
    }

web.php

Route::get('[email protected]');

but got this error msg like this,

Undefined variable: students (View: D:\exam\curd\resources\views\home.blade.php)

how can fix this problem?

Apr
28
5 months ago
Activity icon

Started a new conversation What Is The Best Way For Username?

today we have to make a user name for many web application like GitHub, email, twitter, laracast, etc.. but there are some problems what is the best way to make the username in a web application or are there any specific better rules to make a username. I mean (to remember easy, read easy or any other) as an example consider someone name is John Done? then what is the best username for him?

johndone JohnDone Johndone johnDone

or any other?

Apr
17
5 months ago
Activity icon

Replied to API Integration

well, I am trying to learn how to integrate API in Laravel. any way anybody can give me some sample API installation with Laravel (full tutorials) please let me inform.

Thanks.

Apr
16
5 months ago
Activity icon

Started a new conversation API Integration

I need to integrate the following API questing using Laravel. how can I do this

We would like you to make a connection to the mentioned API using below details and retrieve some data/information. Please see below process.
1. create a simple php class to communicate with the api with the following functions
1. get
1. table
2. page
2. search
1. table
2. query
3. update
1. id
2. table
3. data
2. Should be able to pass any tablename but will only be required to access product and taxrate (so table name is either “product” or “tax”)
3. Fetch a list of all products using the class
4. Convert the products into a paginated table using divs instead of <table> (use html, php and css)
I. Sort the products alphabetically
II. Max 20 products per page
III. Headings
a. ID
b. Name
c. Cost Price
d. Sale Price
IV. Will need to be paginated so can easily browse to e.g page 5
V. Find the product ID for ‘WrightWay Example’ using the table and display details on screen.
5. Change the product “WrightWay Example” to 'WrightWay'
You can use any method you see fit to achieve above.
We prefer to have a simple user interface for all functions above mentioned. As an example to retrieve all products you can use a button named “Get all products”.
See next page for API details….
API Access Details and relevant documentation:
Epos Key (Access key for calls into API ) : F50368501B084C26A480A7F728E4169E
Epos Secret (Password for calls into API ) : E72E8F14846445248890038867E3FB03
To access the API, simply pass an Authorization header with your request, containing Basic and your API access token.
Example Authorization header to be sent with your request:
Authorization: Basic API_ACCESS_TOKEN
You will also need to pass a Content-type header (e.g. application/json) to specify the response data type.
To obtain your API_ACCESS_TOKEN please concatenate your API Key, a colon character ":", and you API Secret in to single string (no spaces) and then Base64 encode it.
API_ACCESS_TOKEN = base64encode(Epos Key:Epos Secret)
GET HTTP://api.eposnowhq.com/api/V1/product/1
{
Authorization: Basic INSERT_API_ACCESS_TOKEN
Content-type: application/json
}
Retrieve Product Details To retrieve an existing Product list, send the request:
GET https://api.eposnowhq.com/api/V2/Product/
Response:
...
List of the first 200 Products
You can retrieve more Products by specifying a page number:
GET https://api.eposnowhq.com/api/V2/Product?page={Page_No}
To retrieve a specific Product by ID
https://api.eposnowhq.com/api/V2/Product/{Product_ID}
REQUEST:
GET HTTPS://API.EposnowHQ.com/API/V2/Product/
{
Authorization : Basic INSERT_API_ACCESS_TOKEN
}
RESPONSE:
HTTP/1.1 200 OK
{
ProductID: 6,
Name: "Green Tea",
Description: null,
CostPrice: 0.3,
SalePrice: 1.5,
EatOutPrice: 0,
CategoryID: null,
Barcode: null,
TaxRateID: 33,
EatOutTaxRateID: null,
BrandID: null,
SupplierID: null,
PopupNoteID: null,
UnitOfSale: null,
VolumeOfSale: null,
MultiChoiceID: null,
ColourID: null,
VariantGroupID: null,
Size: null,
Sku: null,
SellOnWeb: false,
SellOnTill: true,
OrderCode: null,
ButtonColourID: null,
SortPosition: null,
MagentoAttributeSetID: null,
RRPrice: null,
CostPriceTaxRateID: null,
ProductType: 0,
TareWeight: null,
ArticleCode: null
}
Update Products Details
The parameter(s) of a particular Product can be updated by supplying the ProductID and parameter(s) in a PUT/PATCH request
PUT/PATCH https://api.eposnowhq.com/api/V2/Product/{Product_ID}
Search for a Item by specific property value
To retrieve one or more specific Item, use:
GET https://api.eposnowhq.com/api/V2/{ItemName}?{PropertyName}={Value}
Url params
{ItemName}
Item Name: e.g. Customer,Product
{PropertyName}
Property Name: e.g. Name,Description
{Value}
Property Value: e.g. Smith,Tea
Search for the Items by property value or range
The API V2 allows you to search for a specific value or range of properties
Allowed Queries
like, contains
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|like|value) GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|contains|value)
>
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|>|value)
>=
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|>=|value)
<
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|<|value)
<=
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|<=|value)
EndsWith
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|EndsWith|value)
StartsWith
GET https://api.eposnowhq.com/api/V2/{ItemName}?search=(propertyName|StartsWith|value)
Order results by property value
To order your results ascendingly by a specific property, use:
https://api.eposnowhq.com/api/V2/{ItemName}?OrderBy={Property_Name
Apr
09
6 months ago
Activity icon

Replied to What Are The Different Between Laravel Shedule And Queues?

@martinbean @nakov Ok, basically I have this question. consider I have some online reservation system. normally customers are visiting online and make a reservation and they confirm their reservation by logging to email and clicking confirmation link via the email. then the system should send an email to the administrator which including reservation customers data. (consider system should send an email to the admin after the email confirmation) then, can we use queues for this system? (for sending an email to admin after reservation)

Thanks.

Activity icon

Started a new conversation What Are The Different Between Laravel Shedule And Queues?

I wanna know that what is the differences between Laravel Schedule and Queues. please explain using some examples.

Activity icon

Replied to Laravel Design Pattern?

@sergiu17 yes I clean your answer. but I need to learn more advanced with simple steps. thanks for your reply.

Apr
08
6 months ago
Activity icon

Replied to Laravel Design Pattern?

@sergiu17 yes I got but they are not pretty simple and clean.

Activity icon

Replied to Laravel Design Pattern?

@sergiu17 what about repository design pattern. I couldn't see in above resources

Activity icon

Started a new conversation Laravel Design Pattern?

I am very new laravel/php design pattern. I need free and simple web resources to study. like (youtube videos, pdf etc). I have watched laracast videos but I need another. please send me your already known resources.

Thanks.