teguh_rijanandi

teguh_rijanandi

Member Since 1 Year Ago

Experience Points 890
Experience Level 1

4,110 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.

29 May
1 month ago

teguh_rijanandi left a reply on Multiple PHP In One Cpanel

@DEVFREY - Yes i can change php version my self. But i c'ant make multiple pho version using htaccess?

teguh_rijanandi started a new conversation Multiple PHP In One Cpanel

I'm want to make a multiple php in my cpanel, i have a laravel apps and other sites (using wordpress). My wordpress sites will not work if i'm using php version 7.3. The PHP version must 5.5 for my wordpress sites.

And then if the PHP version is 5.5 my app with laravel will not work and then showing 500 Error.

The suitable solution for my case is multiple PHP version with htaccess. Do you can give me a example code for multiple using htaccess? Because i'm using this code is not work for me

AddHandler application/x-httpd-alt-php72___lsphp .php .php5 .phtml AddHandler application/x-httpd-php72 .php

<FilesMatch ".(php4|php5|php7|php3|php2|php|phtml)$">

SetHandler application/x-lsphp73

08 Apr
3 months ago

teguh_rijanandi left a reply on Decrypt Password

@CRONIX - No. I'm want make a list of user. Then in the table showing all users password. But when i'm heard can't decrypt password using laravel. I'm cancled to make a list of user.

Thanks Cronix and thanks all :)

teguh_rijanandi started a new conversation Decrypt Password

Hi guys, i want ask to you. I'm want to decrypt a laravel account password. but i'm find this problem. How to fix that? i'm followed this tutorial but failed https://laravel.com/docs/5.8/encryption#using-the-encrypter

My code

And then the error code is The payload is invalid. (View: C:\xampp\htdocs\pandawa\resources\views\admin\myprofil\update.blade.php)

09 Nov
8 months ago

teguh_rijanandi started a new conversation How To Using Mysqli Num Rows In Laravel

Hello guys, i'm want to count all data in a table, when in native PHP i'm always using mysqli num rows. And then i'm are so confused when i'm using laravel framework. Please give me a sample code, Thank guys

26 Jun
1 year ago

teguh_rijanandi left a reply on How To Rename File With Username/auth.name And File Name?

and then how to filter extension file? i want only jpg and png files are allowed?

teguh_rijanandi left a reply on How To Rename File With Username/auth.name And File Name?

thanks but i am modified again into

$newName = Str::slug($request->get('name')) . $fileName;

teguh_rijanandi started a new conversation How To Rename File With Username/auth.name And File Name?

// Disini proses mendapatkan judul dan memindahkan letak gambar ke folder image $file = $request->file('gambar'); $fileName = $file->getClientOriginalName();

    $request->file('gambar')->move("image/", $fileName);
    $tambah->gambar = Str::slug($request->get('name')). $fileName;
    $tambah->save();

for example i am upload a file with name 1505972507-picsay.jpg (original filename)

and then in image folder changed into teguh-rijanandi1505972507-picsay.jpg? (after upload)

25 Jun
1 year ago

teguh_rijanandi started a new conversation Call To A Member Function GetClientOriginalName() On Null

i am try to upload images, but my project was show this error code Call to a member function getClientOriginalName() on null

and then highlighted on $file = $request->file('gambar'); $fileName = $file->getClientOriginalName(); $request->file('gambar')->move("image/", $fileName);

note: gambar is images (Indoensian Language)

24 Jun
1 year ago

teguh_rijanandi started a new conversation Class App\Http\Controllers\blogController Does Not Exist

What happens whit my blogcontroller

this my BlogController

22 Jun
1 year ago

teguh_rijanandi left a reply on Connection Refused

Done i was checked but can't

teguh_rijanandi left a reply on Whats Mean No Such File Or Directory

Config in env files DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=id6246855_oss DB_USERNAME=id6246855_teguh DB_PASSWORD=teguh**** (sensored)

config in database.php 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', ''), 'port' => env('DB_PORT', ''), 'database' => env('DB_DATABASE', ''), 'username' => env('DB_USERNAME', ''), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, ],

teguh_rijanandi started a new conversation Whats Mean No Such File Or Directory

I have an error code, how to fix this?? SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from users where email = hisaon4@gmail.com limit 1)

teguh_rijanandi left a reply on Connection Refused

How? i using 000webhost to hosted my projects

teguh_rijanandi started a new conversation Connection Refused

How to fix this code? SQLSTATE[HY000] [2002] Connection refused (SQL: select * from users where email = hisaon4@gmail.com limit 1)

This is my .env file DB Configuration:

DB_CONNECTION=mysql

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=id6246855_oss

DB_USERNAME=id6246855_teguh

DB_PASSWORD=********* (Sensored)

21 Jun
1 year ago

teguh_rijanandi left a reply on How Fix This Error??

I also use CRUD (Create Read Update Delete) outside the env file connection. CRUD is successful and runs normally. And the connections same as in env

teguh_rijanandi left a reply on How Fix This Error??

This My project connections

DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=id6246855_oss DB_USERNAME=id6246855_teguh DB_PASSWORD=********* (Sensored)

teguh_rijanandi started a new conversation How Fix This Error??

production.ERROR: SQLSTATE[HY000] [2002] No such file or directory {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /storage/ssd2/855/6246855/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67)

My projects are hosted in 000webhost

09 Jun
1 year ago

teguh_rijanandi started a new conversation .env Or .config File??

Hello guys, I want ask to you all, for safety reasons better use .env or config file in laravel ?? Please help me Thanks

teguh_rijanandi left a reply on Database Config.php Or .env

So better used .env than. Config file??

06 Jun
1 year ago

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

Thank you My friends, if you do not help me, surely I will never finish this project

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

True or Not??

input class="w3-input" maxlength="1" id="sektor" type="text" placeholder="Type 1 Until 5" name="sektor" value="{{ old('sektor') }}" required autofocus>

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

but in database, in sektor column are Null value ?

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

True or not??

                            (@)if ($errors->has('sektor'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('sektor') }}</strong>
                                </span>
                            (@)endif
                        </div>

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

True or Not??

                            @if ($errors->has('sektor'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('sektor') }}</strong>
                                </span>
                            @endif
                        </div>

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

yes i have, i was add 2 new input field

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

hello guys, whats mean from do you have the sektor in the request??

'sektor' => $data['sektor'] // do you have the sektor in the request?

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

hmm.. okay i will set remember token is nullable

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

and now Field 'remember_token' doesn't have a default value, how about this?? I was try your suggestion

$table->string('sektor')->nullable();

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

I just want edit default code "insert into users (name, email, password, updated_at, created_at)" to insert into users (name, email, school,address password, updated_at, created_at) ??

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

this my migrations database

Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email'); $table->string('sektor'); $table->string('sekolah'); $table->string('password'); $table->string('remember_token'); $table->timestamps(); });

teguh_rijanandi left a reply on How To Edit Insert Into Users Value???

i want edited like this insert into users (name, email,school,address, password, updated_at, created_at)

teguh_rijanandi started a new conversation How To Edit Insert Into Users Value???

Please Guys, help me for edit this default command?? i am want add some code again like a school name, or address SQLSTATE[HY000]: General error: 1364 Field 'sektor' doesn't have a default value (SQL: insert into users (name, email, password, updated_at, created_at) values (Teguh Rijanandi, teguhrijanandi02@gmail.com, $2y$10$hqzIZLq3PEK/ndiS7dCDluunnuTUKqEC9hrKBafVwOXkYjdHqF06O, 2018-06-06 15:15:36, 2018-06-06 15:15:36))

02 Jun
1 year ago

teguh_rijanandi started a new conversation Expected Response Code 250 But Got Code "535", With Message "535-5.7.8

Whats i should??

Swift_TransportException thrown with message "Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials w8-v6sm84212002pfk.112 - gsmtp ""

This my mail configuration in .env MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=hisaon4@gmail.com MAIL_PASSWORD=(sensored) MAIL_ENCRYPTION=tls

teguh_rijanandi started a new conversation 'remember_token' Doesn't Have A Default Value

whats should i do?? In users table i have 5 column (Name,email,password,update_at,created_at), but in regsitration form i dont have inputs with remember token name??

Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000]: General error: 1364 Field 'remember_token' doesn't have a default value (SQL: insert into users (name, email, password, updated_at, created_at) values (Teguh Rijanandi, hisaon4@gmail.com, $2y$10$hsUSJCEoaKwiBSSm2adNr.YduD8suMeQg0yMyMZ/65yItvnDiqhVS, 2018-06-02 21:58:14, 2018-06-02 21:58:14))"