Sagarreddy

Sagarreddy

Member Since 2 Years Ago

Experience Points 1,180
Experience Level 1

3,820 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 6
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.

14 Mar
2 years ago

Sagarreddy left a reply on Has Many Through

The primary key names that you are using is quite confusing. Assuming that you are accessing the faults through user via process_type. Your user table primary key name should be id. your process_type table foreign key should be user_id and your faults foreign key should be process_type_id.

Sagarreddy left a reply on Has Many Through

Hi

I think you are adding function to the wrong model. Since you are accessing the faults through user via process_type. you should add the faults function to user model.
19 Oct
2 years ago

Sagarreddy left a reply on AB Testing Vendor Installation In Laravel 5.0

I can install a different package https://github.com/Raphael-C-Almeida/laravel-5-ab .But php artian ab:install gives me the below error

[ErrorException]
  Invalid argument supplied for foreach()

Sagarreddy started a new conversation AB Testing Vendor Installation In Laravel 5.0

Hi All,

 I am trying to install AB testing plugin to laravel 5.0 based on the commands provided in 

https://github.com/jenssegers/laravel-ab/blob/master/README.md but when I add 'Jenssegers\AB\TesterServiceProvider', to the providers array in config/app.php file and then if I run any php artisan commands I am getting an error that says

´´´ [BadMethodCallException] Call to undefined method [package] ´´´

I have tried installing laracasts/generators but it still shows the same error any idea why I am getting this error any help is appreciated thanks in advance.

29 Aug
2 years ago

Sagarreddy started a new conversation Uploading Files Outside Laravel Project

Hi All,

 I am trying to upload the files from a sub domain where laravel app is running to a directory in main domain  below is my code
    $destination="https://mydomain.com/file/order/";
               if($request->hasFile('image_name')){
                    $extension=Input::file('image_name'])->getClientOriginalExtension();
                    $random_number=mt_rand(100000,999999);
                    $date=date('Y-m-d');
                    $filename=$date.$random_number.'.'.$extension;
                    Input::file('image_name')->move($destination, $filename);
                }          

But I am getting an error that says

Unable to create the "https://mydomain.com/file/order/" directory

in File.php line 134
at File->getTargetFile('https://mydomain.com/file/order/', '2016-08-29162893.png') in UploadedFile.php line 239
at UploadedFile->move('https://mydomain.com//file/order/', '2016-08-29162893.png') in MainController.php line 759
at MainController->postOrder(object(Request))

Can someone please let me know how to uploads the files outside the laravel folder in the server. Any help is appreciated. Thanks in advance

23 Aug
2 years ago

Sagarreddy left a reply on Transulation Manager Install In Laravel 5.0

Hi,

I just uninstalled the package and  then installed it back again, it worked thanks for your replay..:)
22 Aug
2 years ago

Sagarreddy started a new conversation Transulation Manager Install In Laravel 5.0

I am trying to install the translation manager in laravel 5.0 following the instruction in

https://github.com/barryvdh/laravel-translation-manager/

but the problem is when i go to the http://mydomain.com/translation it shows 'Class App\Http\Controllers\Barryvdh\TranslationManager\Controller does not exist'

The controller is not getting created . I am guessing for laravel 5.0 the installation procedure is different is it the case??. Any help is appreciated Thanks in adavnce

Sagarreddy started a new conversation String Transulation Type Hint

I am using trans function for language translation. ''' {{trans('allSetOfStrings.Open)}}

I have large number of string to translate when using trans function in a view it wont type hint this is an headache when I have large number of string to translate is there any other plugins that can be used here

21 Aug
2 years ago

Sagarreddy left a reply on String Translation Not Working When Strong Or Bold Tag Is Used

Might be the case of forgetting some translation when deploying. I have to check my strings file in server

Sagarreddy left a reply on String Translation Not Working When Strong Or Bold Tag Is Used

the source shows the same in the browser

<strong>{{trans('Allstrings.remote')}}</strong>

it works when used in localhost.Other string where I have not used bold or strong works  in the server

Sagarreddy started a new conversation String Translation Not Working When Strong Or Bold Tag Is Used

Hi All,

 I am trying to use trans function to translate the strings. When I use the strong tag or bold the text in html it does not seem to work on  the server but, it works well in localhost. 

below is the code

<strong>{{trans('Allstrings.remote')}}</strong>

Also, trans function does not provide type hint this will be painful when I have a large number of strings is there a better way to do the translation??

16 Aug
2 years ago

Sagarreddy left a reply on Ajax Function In Laravel

Hi simon,

  Keeping  separate method for post and adding ajax setup outside the function worked thanks for the help..:)
15 Aug
2 years ago

Sagarreddy started a new conversation Ajax Function In Laravel

I am trying to call an ajax method from a view in laravel below is the script

function getMessage(){ $.ajax({ url: '/management', type: 'POST', data:'_token = ', dataType: 'JSON', success: function (data) { $('#type_of_order').html=data.msg; }, error:function(data){ alert(data); } }); }

But it is always going inside the error part i.e., alert(data)

The Controller function

public function order(){ //do some function for get method if(Request::ajax()){ $msg = "the message."; return response()->json(array('msg'=> $msg)); } return view('order'); } Route file

Route::get('/management','[email protected]'); Route::post('/management','[email protected]');

I cannot understand why it is not calling the post method function I am new to ajax any help is appreciated thanks in advance

10 Aug
2 years ago

Sagarreddy left a reply on Install Laravel 5.2 In 1and1 Servers

so the php artisan up in some dummy domain can be used for testing in server??

Sagarreddy left a reply on Install Laravel 5.2 In 1and1 Servers

Hi assertzero,

Thank you for your reply I have tried installing laravel 5.0 in 1and1 servers by following the instructions in

http://carlorodriguez.github.io/blog/2016/01/29/deploy-laravel-webapp-to-1and1/

I wanted to see if it working by running the command running the command php5.5 artisan serve it does not run continuously it says:

Laravel development server started on http://localhost:8000/ Error in argument 1, char 2: option not found S X-Powered-By: PHP/5.5.38 Content-type: text/html Usage: php5.5 [-q] [-h] [-s] [-v] [-i] [-f ] php5.5 [args...]

could this be solved by following your instructions as well?

27 Jul
2 years ago

Sagarreddy left a reply on Using Existing Databse In Laravel Project

I think the problem might be 1and1 does not allow db access outside the server. I was trying to access from my local machine.

Sagarreddy started a new conversation Install Laravel In 1and1 Servers

Hi I am trying to install laravel 5.2 in 1and1 server using command prompt. However if i use php7.0 -c php.ini/homepages/30/d509205362/htdocs/composer.phar crate-project laravel/laravel --prefer-dist

it says php7.0 command not found

if I try using php.5.5 it is taking version 5.5.38. can someone please guide me how to install laravel in 1and1 servers

is this the problem from the server side

Sagarreddy started a new conversation Intalling Laravel 5.2 In 1und1 Servers

Hi I am trying to install laravel 5.2 in 1and1 server using command prompt. However if i use php7.0 -c php.ini/homepages/30/d509205362/htdocs/composer.phar crate-project laravel/laravel --prefer-dist

it says php7.0 command not found

if I try using php.5.5 it is taking version 5.5.38 can someone guide me how to install laravel in 1and1 servers

Sagarreddy left a reply on Using Existing Databse In Laravel Project

I have used the same host name in the php codes I can connect through that...Laravel is installed in my system and I am trying to access the database by changing the .env file. Should I install the laravel on the server as well?

26 Jul
2 years ago

Sagarreddy started a new conversation Using Existing Databse In Laravel Project

I am new to laravel. I want to use the existing database in my server in a laravel project. I have changed the .env file however it is still not connecting to the host. I am not using homestead. Is this creating any problems.

db host name in .env file DB_HOST=db***.db.1and1.com

I see the below mentioned error when I try to write a query using the database

php_network_getaddresses: getaddrinfo failed: No such host is known

Thanks in advance