Kanchan186

Kanchan186

Member Since 1 Week Ago

Experience Points 710
Experience Level 1

4,290 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 1
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.

16 Aug
1 day ago

Kanchan186 left a reply on SQLSTATE[HY000]: General Error: 1364 Field 'c_id' Doesn't Have A Default Value (SQL: Insert Into `states` (`s_name`, `updated_at`, `created_at`) Values (nm, 2019-08-16 07:07:55, 2019-08-16 07:07:55))

i want to insert a selected country-> c_id option value in a state table

but i dont know how to do that

please share the sample code for dyanmic dropdown box using foreign key

14 Aug
3 days ago

Kanchan186 left a reply on Error: MySQL Shutdown Unexpectedly.

I solved this error

I deleted the ibdata1 file and error get solved

Kanchan186 started a new conversation Error: MySQL Shutdown Unexpectedly.

Error: MySQL shutdown unexpectedly. 23:37:13 [mysql] This may be due to a blocked port, missing dependencies, 23:37:13 [mysql] improper privileges, a crash, or a shutdown by another method. 23:37:13 [mysql] Press the Logs button to view error logs and check 23:37:13 [mysql] the Windows Event Viewer for more clues 23:37:13 [mysql] If you need more help, copy and post this 23:37:13 [mysql] entire log window on the forums

Kanchan186 started a new conversation "Error To Open Phpmyadmin " Please Help Me To Figure Out.

Error MySQL said: Documentation

Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

09 Aug
1 week ago

Kanchan186 left a reply on When I Click On Edit Button ,it Shows Only Values From Database, Not Showing Edit Form To Update Values

thanks sir but still i getting error

ErrorException (E_ERROR) Undefined index: name (View: C:\xampp\htdocs\test\resources\views\edit.blade.php)

C:\xampp\htdocs\test\vendor\laravel\framework\src\Illuminate\Support\Collection.php /** * Determine if an item exists at an offset. * * @param mixed $key * @return bool */ public function offsetExists($key) { return array_key_exists($key, $this->items); }

/**
 * Get an item at a given offset.
 *
 * @param  mixed  $key
 * @return mixed
 */
public function offsetGet($key)
{
    return $this->items[$key];
}

/**
 * Set the item at a given offset.
 *
 * @param  mixed  $key
 * @param  mixed  $value
 * @return void
 */
public function offsetSet($key, $value)
{
    if (is_null($key)) {
        $this->items[] = $value;
    } else {
        $this->items[$key] = $value;
    }
}

/**
 * Unset the item at a given offset.

Arguments "Undefined index: name (View: C:\xampp\htdocs\test\resources\views\edit.blade.php)"

Kanchan186 left a reply on When I Click On Edit Button ,it Shows Only Values From Database, Not Showing Edit Form To Update Values

again i getting error in above code

ErrorException (E_ERROR) Undefined index: name (View: C:\xampp\htdocs\test\resources\views\edit.blade.php)

Kanchan186 left a reply on When I Click On Edit Button ,it Shows Only Values From Database, Not Showing Edit Form To Update Values

Edit Record
    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">

    <!-- Styles -->
    <style>
        html, body {
            background-color: #fff;
            color: #636b6f;
            font-family: 'Nunito', sans-serif;
            font-weight: 200;
            height: 100vh;
            margin: 0;
        }

        .full-height {
            height: 100vh;
        }

        .flex-center {
            align-items: center;
            display: flex;
            justify-content: center;
        }

        .position-ref {
            position: relative;
        }

        .top-right {
            position: absolute;
            right: 10px;
            top: 18px;
        }

        .content {
            text-align: center;
        }

        .title {
            font-size: 84px;
        }

        .links > a {
            color: #636b6f;
            padding: 0 25px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: .1rem;
            text-decoration: none;
            text-transform: uppercase;
        }

        .m-b-md {
            margin-bottom: 30px;
        }
    </style>
</head>
<body>
  <!--  <div class="flex-center position-ref full-height">
        @if (Route::has('login'))
            <div class="top-right links">
                @auth
                    <a href="{{ url('/home') }}">Home</a>
                @else
                    <a href="{{ route('login') }}">Login</a>

                    @if (Route::has('register'))
                        <a href="{{ route('register') }}">Register</a>
                    @endif
                @endauth
            </div>
        @endif

        <div class="content">
            <div class="title m-b-md">
                Laravel
            </div>

            <div class="links">
                <a href="https://laravel.com/docs">Docs</a>
                <a href="https://laracasts.com">Laracasts</a>
                <a href="https://laravel-news.com">News</a>
                <a href="https://blog.laravel.com">Blog</a>
                <a href="https://nova.laravel.com">Nova</a>
                <a href="https://forge.laravel.com">Forge</a>
                <a href="https://github.com/laravel/laravel">GitHub</a>
            </div>
        </div>
    </div> -->



    <!--{{dd($result['name'])}}-->
<input type="hidden" name="id" value="{{($result) ? $result['id']:''}}">
{{csrf_field()}}

<table border="5px">


<tr>
<td>Name</td> 
<td><input type="text" name="name" value="{{($result) ? $result['name']:' '}}"></td>   
</tr>

<tr>
<td>Email</td> 
<td><input type="text" name="email" value="{{($result) ? $result['email']:' '}}"></td>   
</tr>

<tr>
<td>Country</td> 
<td><input type="text" name="country" value="{{($result) ? $result['country']:' '}}"></td>   
</tr>

<tr>
<td>State</td> 
<td><input type="text" name="state" value="{{($result) ? $result[state]:' '}}"></td>   
</tr>

<tr>
<td>City</td> 
<td><input type="text" name="city" value="{{($result) ? $result[city]:' '}}"></td>   
</tr>

<tr colspan="2">
<td><input type="submit" name="submit" value="update"></td>    
</tr>


</table>
</body>

Kanchan186 left a reply on "count(): Parameter Must Be An Array Or An Object That Implements Countable" What Should I Do To Solve This Error

again i getting error

ErrorException (E_NOTICE) Undefined variable: result

Kanchan186 started a new conversation "count(): Parameter Must Be An Array Or An Object That Implements Countable" What Should I Do To Solve This Error

// edit data function editData($id) { $result=DB::table('test')->find($id);

//dd($result);

if(count($result)>0) { return view('edit',compact('result'));

}

else { $result=App\Test::all(); return view('welcome',compact('result')); } }

// update Data

Function updateData(Request $request)

Kanchan186 started a new conversation When I Click On Edit Button ,it Shows Only Values From Database, Not Showing Edit Form To Update Values

//Function to fetch data from database function showData() { //$result=DB::table('test')->all(); $result=App\Test::all();

return view('welcome',['result'=>$result]);

}

// edit data function editData($id) { $result=DB::table('test')->find($id);

//dd($result);

if(count($result)>0) { return view('edit',compact('result'));

}

else { $result=App\Test::all(); return view('welcome',compact('result')); } }

// update Data

Function updateData(Request $request) { dd($req->input()); }

Kanchan186 started a new conversation "Class 'App\Http\Controllers\test' Not Found" Please Check My Code Where I Going Wrong?

{ $result=test::all();

return view('welcome',['result'=>$result]);

}

// edit data function editData($id) { $result=test::find($id);

dd($result);

if(count($result)>0)
{
    return view('edit',compact('result'));

}

else { $result=test::all(); return view('welcome',['result'=>$result]); } }