Member Since 6 Months Ago
4,130 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Replied to Redirecting To Intended Url
There are other routes as well which the user needs to be authenticated first
Route::Group(['middleware' => 'auth', 'namespace' => 'Users'], function(){
// dasboard
Route::get('dashboard', '[email protected]')->name('dashboard');
// payment
Route::get('payment_plans', '[email protected]_plans')->name('payment_plans');
// submit payment
Route::post('submitPayment', '[email protected]')->name('submitPayment');
});
Replied to Redirecting To Intended Url
If you check the routes i provided above. If a user want to access for example payment_plans
, the user must be authenticated first. so if you try to access payment_plans
, you will be redirected to the login page, then you login or register before you are redirected back to payment_plans
again. The login works. But after registration, you are redirected to the protected $redirectTo = '/home';
in the register controller. but i want the user to be redirected to payment_plans
.
Replied to Redirecting To Intended Url
I don't want it to be change to the dashboard but any other routes which the user must be authenticated before can access that page.
Started a new Conversation Redirecting To Intended Url
I want to redirect a user to the intended URL after registration. i Have tried several solution online. stack overflow, laracast and other sites, but still not getting the desired result. The login works.
My routes
Route::Group(['middleware' => 'auth', 'namespace' => 'Users'], function(){
// payment
Route::get('dashboard', '[email protected]')->name('dashboard');
// payment
Route::get('payment_plans', '[email protected]_plans')->name('payment_plans');
// payment
Route::post('submitPayment', '[email protected]')->name('submitPayment');
});
The user is redirected to any of the above routes after login, but after registration, it does not redirect the user to the routes above but to this in the controller protected $redirectTo = '/home';
Started a new Conversation Converting The Following To Loop
i'am creating a map using leaflet
I have been able to to get this locations on the map. but i want to query the details, the latitudes, and longitudes and popup mesage from the database. which i will loop through. how do i go about it
var littleton = L.marker([39.61, -105.02]).bindPopup('This is Littleton, CO.'),
denver = L.marker([39.74, -104.99]).bindPopup('This is Denver, CO.'),
aurora = L.marker([39.73, -104.8]).bindPopup('This is Aurora, CO.'),
golden = L.marker([39.77, -105.23]).bindPopup('This is Golden, CO.');
var cities = L.layerGroup([littleton, denver, golden, aurora]);
The cities is called in this map
var map = L.map('mapid', {
center: [39.73, -104.99],
zoom: 10,
layers: [grayscale, cities]
});
Replied to Renaming Laravel Default Login Route Name "login"
The login is still working, which i think should throw error if set to false;
I've been able to change it this way
Auth::routes(['login' => false, 'register' => false]);
Route::get('user_register')->name('register')->uses('Auth\[email protected]');
Route::get('user_login')->name('login')->uses('Auth\[email protected]');
But that of the register route works fine with the new define route user_register
but the both login
and user_login
show the login form.
Replied to Renaming Laravel Default Login Route Name "login"
I want to make use of the other routes. so what happens if i Auth::routes();
is removed. because am getting Route [register] not defined.
And also i want to implement must verify Auth::routes(['verify' => true]);
Started a new Conversation Renaming Laravel Default Login Route Name "login"
I want to rename the default name of login route which is "login" to something like "user_login". How do i go about it. Thanks
Started a new Conversation How To Create The Following Shape In Css With Clip-path Or Any Other Way
I am trying to achieve this shape but not being able to get the desired result. I am using it in a bootstrap carousel
link to image
https://i.stack.imgur.com/DraDX.png
Below is what i've done so far.
html code
<div>hello</div>
css code
height:300px;
width:350px;
background: #414141;
clip-path: polygon(0 10%, 100% 23%, 100% 90%, 0% 100%);
filter: drop-shadow(30px 10px 4px #2ec);
}```
Started a new Conversation How Do I Use HTTP_Request2 In Class I Have Created In App
I have create a class in 'App\Helpers\tokens which i want to use HTTP_Request2, but i am gettting below error,
Class 'App\Helpers\HTTP_Request2' not found
what do i need to do. Below is my code
<?php
use \App\Helpers\HTTP_Request2;
namespace App\Helpers;
Class Tokens{
public static function tokens(){
require_once 'HTTP/Request2.php';
$request = new \Http_Request2('https://sandbox.momodeveloper.mtn.com/collection/token/');
$url = $request->getUrl();
Replied to How Do I Use HTTP_Request2 In Laravel 5?
Have you gotten solution on how you included the request2. I am facing same issue.
Started a new Conversation Search Box With Rounded Corners And Buttons
I want to achieve the result in the image below but i am not getting the desired result. Below is my code
<div class="row no-gutters mt-3 align-items-center">
<div class="col col-md-4">
<input class="form-control border-secondary rounded-pill " type="search" id="example-search-input2" style="width: 100%">
</div>
<div class="col-auto">
<button class="btn btn-primary btn-outline-light text-white border-0 rounded-pill ml-n5" type="button" >
search
</button>
</div>
</div>
Replied to Sending More Than 10,000 Sms
Hello, how were you able to implement the sms with jobs. need some help on this. doing similer.
Replied to How To Develop Sms Api
I know they provide sms api, which you can integrate into your application for sending sms, but i am talking of how i can develop that api which can one can also integrate into an application, and does twilio provide that as well.
Just need some clarification
Started a new Conversation How To Develop Sms Api
I've been reading around on how to develop sms api, but not gotten anything so far. i need some guidelines and if possible any resources.
Started a new Conversation Values With 00 As Decimals Not Showing After Querying From Database
I am querying values from database with datatype double. The values with example like 10.00 as aren't showing the 00 but shows 10. Also values like 10.25, 10.01 are showing the decimals, what do i need to do to get 10.00?
I used the below code in my model but the 00 decimals aren't showing and shows 10 instead of 10.00,
protected $casts = [
'childNonInsuredTarrif' => 'double',
'childInsuredTarrif' => 'double',
];