Skip to content

u/aerojun

In this archive from Jan 2012 to Aug 2017

4
posts
10
comments
2
media
18
score

Top posts

Migrations with artisan and SQL Server 2012

I hope this is the right place to post for help. I'm trying to create a migration using SQL Server, but everytime i try: php artisan migrate:install I get the error: [PDOException] SQLSTATE[08001]: [Microsoft][SQL Server Native Cliente 11.0] Named Pipes Provider: Could not open a connection to SQL S...

3 points2 comments
Open on Reddit

Doubt with URL::previous()

(Maybe the title is not the correct one) In my application (ecommerce shop), i display the products on the route /products When the user clicks the buy item button, if he's not logged in, it redirects to Route::get('login', array('before'=>'guest', function() { return View::make('usuarios.login'); }...

2 points5 comments
Open on Reddit

Top comments

I wish i could show you, but i lost everything when my HDD failed and died (Now i backup everything everyday just in case. I could use git, but for some reasons i can't). I've never used the JW generator tool, i'll check it out. I think i had trucante() in the code, but i can't recall.

Thanks for the help. :D

2 points

Yep. In the site, the user can sign up. I save the date in the 'usuarios' table and if he's a student, i save extra data on 'Alumnos', if he's a company, on 'empresas'.

So, a user can be a student or a company. When i register the user, i save the 'Alumno' data, then create the user and link the two models.

1 points

I've been using laravel for a school project and there is something that i do not like at all.

Migrations.

Every time i do a migration, the data stored is deleted. (Idk, i could be using the migrations in the wrong way and deleting my data.)

Everything else is excellent.

1 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.